1
0
mirror of https://gitea.com/gitea/act_runner synced 2026-05-06 01:37:57 +02:00
Files
act_runner/.github/workflows/gh-extension.yml
2023-01-20 10:10:20 -08:00

26 lines
612 B
YAML

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,
});