fix the deploy script,

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-16 09:34:37 +01:00
parent 8d1e779245
commit b0300057c6
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

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