Skip to content

Commit 3085e16

Browse files
committed
Use tvdias/github-tagger for creating a tag
It's much easier to read than actions/github-script
1 parent b86c0d5 commit 3085e16

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,9 @@ jobs:
4646
name: Publish package on github.com
4747
steps:
4848
- name: Create tag
49-
uses: actions/github-script@v3
49+
uses: tvdias/github-[email protected]
5050
with:
51-
github-token: ${{ github.token }}
52-
script: |
53-
github.git.createRef({
54-
owner: context.repo.owner,
55-
repo: context.repo.repo,
56-
ref: "refs/tags/${{ needs.package.outputs.version }}",
57-
sha: context.sha
58-
})
51+
repo-token: ${{ github.token }}
52+
tag: ${{ needs.package.outputs.version }}
5953
- run: dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
6054
- run: dotnet nuget push "**/*.nupkg" --source github

0 commit comments

Comments
 (0)