File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 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- });
You can’t perform that action at this time.
0 commit comments