Commit c00271ba
c00271ba8b17Merged
Dmitriy Zhilyaev <[email protected]> ยท 5 years ago ยท 2 files ยท ~1 modified ยท -1 deleted
Description
Merge pull request #100 from helmwave/autocreatetag_fix
Fix release workflow to work with created tag
Details
- Commit
- c00271ba8b17
- Parent
- b04690cdea8e
- Merge parent
- 1ed6b3b103f1
.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โฆ