feat: release extension
This commit is contained in:
parent
b00babd0d9
commit
19e6929398
1 changed files with 25 additions and 0 deletions
25
.github/workflows/gh-extension.yml
vendored
Normal file
25
.github/workflows/gh-extension.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: gh-extension
|
||||
on:
|
||||
workflow_dispatch
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Release extension
|
||||
uses: actions/github-script@v5
|
||||
with:
|
||||
github-token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
|
||||
script: |
|
||||
const mainRef = github.rest.git.getRef({
|
||||
owner: 'nektos',
|
||||
repo: 'gh-act',
|
||||
ref: 'heads/main',
|
||||
});
|
||||
github.rest.git.createRef({
|
||||
owner: 'nektos',
|
||||
repo: 'gh-act',
|
||||
ref: 'refs/tags/v0.2.39',
|
||||
sha: mainRef.object.sha,
|
||||
});
|
Loading…
Reference in a new issue