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