Skip to content

Commit 19e6929

Browse files
committed
feat: release extension
1 parent b00babd commit 19e6929

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/gh-extension.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: gh-extension
2+
on:
3+
workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Release extension
11+
uses: actions/github-script@v5
12+
with:
13+
github-token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
14+
script: |
15+
const mainRef = github.rest.git.getRef({
16+
owner: 'nektos',
17+
repo: 'gh-act',
18+
ref: 'heads/main',
19+
});
20+
github.rest.git.createRef({
21+
owner: 'nektos',
22+
repo: 'gh-act',
23+
ref: 'refs/tags/v0.2.39',
24+
sha: mainRef.object.sha,
25+
});

0 commit comments

Comments
 (0)