Skip to content

Commit 318b38b

Browse files
authored
Fix syntax for git tag in update tag workflow (#22)
1 parent a52baf7 commit 318b38b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/update-action-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
run: |
3636
export VERSION=$(cat .github/workflows/version.txt)
3737
echo "VERSION=$VERSION" >> $GITHUB_ENV
38-
git push origin ":v${VERSION}"
38+
git push origin ":v${VERSION}" || true
3939
4040
- name: Create a new signed tag
4141
uses: ./git-sign
4242
with:
43-
command: git tag -m "Update tag" -s --local-user=${{ env.GPG_KEY_ID }} v${{ env.VERSION }}"
43+
command: git tag -a \"${{ env.VERSION }}\" -m \"Update tag\" -s --local-user=${{ env.GPG_KEY_ID }}
4444

4545
- name: Push the tag
4646
run:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Use this action to create signed git artifacts:
5555
- name: Create signed tag
5656
uses: mongodb-labs/drivers-github-tools/git-sign@v2
5757
with:
58-
command: "git tag -m 'Tag' -s --local-user=${{ env.GPG_KEY_ID }} <tag>"
58+
command: "git tag -m 'Tag' -s --local-user=${{ env.GPG_KEY_ID }} -a <tag>"
5959
```
6060

6161
### gpg-sign

0 commit comments

Comments
 (0)