Skip to content

Commit 1fcb7a3

Browse files
authored
create tag workflow (#609)
1 parent 7853bb8 commit 1fcb7a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/tag.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ jobs:
3030
- name: Create Tag
3131
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # 8.0.0
3232
with:
33+
github-token: ${{ steps.app-token.outputs.token }}
3334
script: |
3435
try {
3536
var tagResponse = await github.rest.git.createTag({
3637
owner: context.repo.owner,
3738
repo: context.repo.repo,
3839
tag: '${{ inputs.tag }}',
3940
message: 'Release ${{ inputs.tag }}',
40-
object: '${{ github.sha }}',
41+
object: context.sha,
4142
type: 'commit',
4243
});
4344
@@ -53,5 +54,3 @@ jobs:
5354
core.error('Failed to create tag ${{ inputs.tag }}')
5455
core.setFailed(`Action failed with error: ${err}`);
5556
}
56-
env:
57-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)