We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32f39e7 commit 3f77c4dCopy full SHA for 3f77c4d
1 file changed
.github/workflows/release.yml
@@ -23,8 +23,18 @@ jobs:
23
VERSION=$(grep -oP '"version":\s*"\K[^"]+' src/manifest_firefox.json)
24
echo "VERSION=v$VERSION" >> $GITHUB_OUTPUT
25
26
- - name: Create and push tag
+ - name: Check if tag exists
27
+ id: check_tag
28
if: github.ref == 'refs/heads/master'
29
+ run: |
30
+ if git rev-parse ${{ steps.manifest_version.outputs.VERSION }} >/dev/null 2>&1; then
31
+ echo "TAG_EXISTS=true" >> $GITHUB_OUTPUT
32
+ else
33
+ echo "TAG_EXISTS=false" >> $GITHUB_OUTPUT
34
+ fi
35
+
36
+ - name: Create and push tag
37
+ if: github.ref == 'refs/heads/master' && steps.check_tag.outputs.TAG_EXISTS == 'false'
38
run: |
39
git config user.name "github-actions[bot]"
40
git config user.email "github-actions[bot]@users.noreply.github.com"
0 commit comments