1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

chore: update docs for installing act as GH CLI extension

This commit is contained in:
Casey Lee 2023-01-20 10:22:58 -08:00
parent a34ad7e648
commit d70ed0dbbf
2 changed files with 17 additions and 26 deletions

View file

@ -1,26 +0,0 @@
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 = (await github.rest.git.getRef({
owner: 'nektos',
repo: 'gh-act',
ref: 'heads/main',
})).data;
console.log(mainRef);
github.rest.git.createRef({
owner: 'nektos',
repo: 'gh-act',
ref: 'refs/tags/v0.2.39',
sha: mainRef.object.sha,
});

View file

@ -39,3 +39,20 @@ jobs:
version: ${{ github.ref }}
apiKey: ${{ secrets.CHOCO_APIKEY }}
push: true
- name: GitHub CLI extension
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
script: |
const mainRef = (await github.rest.git.getRef({
owner: 'nektos',
repo: 'gh-act',
ref: 'heads/main',
})).data;
console.log(mainRef);
github.rest.git.createRef({
owner: 'nektos',
repo: 'gh-act',
ref: `refs/tags/${context.ref}`,
sha: mainRef.object.sha,
});