We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7853bb8 commit 1fcb7a3Copy full SHA for 1fcb7a3
.github/workflows/tag.yaml
@@ -30,14 +30,15 @@ jobs:
30
- name: Create Tag
31
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # 8.0.0
32
with:
33
+ github-token: ${{ steps.app-token.outputs.token }}
34
script: |
35
try {
36
var tagResponse = await github.rest.git.createTag({
37
owner: context.repo.owner,
38
repo: context.repo.repo,
39
tag: '${{ inputs.tag }}',
40
message: 'Release ${{ inputs.tag }}',
- object: '${{ github.sha }}',
41
+ object: context.sha,
42
type: 'commit',
43
});
44
@@ -53,5 +54,3 @@ jobs:
53
54
core.error('Failed to create tag ${{ inputs.tag }}')
55
core.setFailed(`Action failed with error: ${err}`);
56
}
- env:
57
- GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
0 commit comments