Fix syntax error

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-16 09:31:23 +01:00
parent 3f8a439633
commit 8d1e779245
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -17,8 +17,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: |
git fetch --all --tags
if [[ ! git merge-base --is-ancestor ${{ inputs.rev }} ${{ inputs.job_name }} ]]; then
git tag -f ${{ inputs.job_name }} ${{ inputs.rev }}
git push --tags --force
fi
git tag --list | grep ${{ inputs.job_name }} || (git tag ${{ inputs.job_name }} ${{ inputs.rev }} && git push --tags)
git fetch --all --tags
if [[ ! git merge-base --is-ancestor ${{ inputs.rev }} ${{ inputs.job_name }} ]]; then
git tag -f ${{ inputs.job_name }} ${{ inputs.rev }}
git push --tags --force
fi