Commit 22e9004b
22e9004bab8bMerged
Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 2 files ยท ~1 modified ยท -1 deleted
Description
Fix release workflow to work with created tag
Details
- Commit
- 22e9004bab8b
- Parent
- b04690cdea8e
.github/workflows/create-tag.ymldeleted
1-
name: Create tag2-
3-
on:4-
pull_request:5-
branches:6-
- main7-
types:8-
- closed9-
10-
jobs:11-
tagger:12-
runs-on: ubuntu-latest13-
steps:14-
- name: Create tag15-
uses: actions/github-script@v316-
if: github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release-')17-
with:18-
github-token: ${{ github.token }}19-
script: |20-
const tag = context.payload.pull_request.head.ref.replace("release-", "")21-
github.git.createRef({22-
owner: context.repo.owner,23-
repo: context.repo.repo,24-
ref: "refs/tags/" + tag,25-
sha: context.payload.pull_request.merge_commit_sha26-
})27-
.github/workflows/release.ymlmodifiedView file
Loading diffโฆ