Skip to content

Commit a360bec

Browse files
committed
Let's try this
1 parent cca8c1f commit a360bec

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/release-on-merge.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [ master ]
66

77
jobs:
8-
tag:
8+
release:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
@@ -21,16 +21,9 @@ jobs:
2121
echo "::set-output name=tagname::2.1.${PATCH}"
2222
2323
- name: Create Tag
24-
uses: actions/github-script@v3
25-
with:
26-
github-token: ${{ github.token }}
27-
script: |
28-
github.git.createRef({
29-
owner: context.repo.owner,
30-
repo: context.repo.repo,
31-
ref: "refs/tags/${{ steps.compute-tag.outputs.tagname }}",
32-
sha: context.sha
33-
})
24+
run: |
25+
git tag ${{ steps.compute-tag.outputs.tagname }}
26+
git push origin ${{ steps.compute-tag.outputs.tagname }}
3427
3528
- name: Create release
3629
uses: ncipollo/release-action@v1

0 commit comments

Comments
 (0)