Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
9423cbc331
|
|||
|
915a2fc67e
|
|||
|
afec455c18
|
13
action.yml
13
action.yml
@ -20,6 +20,11 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0 # required to see all branches
|
||||
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
@ -39,10 +44,10 @@ runs:
|
||||
|
||||
- name: push to latest branch
|
||||
run: |
|
||||
if ! git ls-remote --exit-code --heads origin latest; then
|
||||
git checkout -b latest
|
||||
git push origin latest
|
||||
else
|
||||
if git ls-remote --exit-code --heads origin latest; then
|
||||
git switch latest
|
||||
git merge latest
|
||||
else
|
||||
git checkout -b latest
|
||||
git push origin latest
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user