Skip to content

Commit 906c7fc

Browse files
committed
test without actually tagging
1 parent 06d6286 commit 906c7fc

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

.github/workflows/tag-release.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,3 @@ jobs:
2929
run: gh pr merge --squash --auto "${{ steps.cpr.outputs.pull-request-number }}"
3030
env:
3131
GH_TOKEN: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
32-
- name: Tag release sha
33-
uses: actions/github-script@v7
34-
with:
35-
github-token: ${{ secrets.EMSCRIPTEN_BOT_TOKEN }}
36-
script: |
37-
const tag_sha = '${{ inputs.release-sha }}';
38-
const release_version = '${{ env.RELEASE_VERSION }}';
39-
console.log(`Version ${release_version} at SHA ${tag_sha}`);
40-
const regex = /^[0-9]+.[0-9]+.[0-9]+$/;
41-
const match = release_version.match(regex);
42-
if (!match) {
43-
throw new Error('Malformed release version');
44-
}
45-
await github.rest.git.createRef({
46-
owner: context.repo.owner,
47-
repo: context.repo.repo,
48-
ref: `refs/tags/${release_version}`,
49-
sha: tag_sha
50-
});

0 commit comments

Comments
 (0)