Skip to content

Commit a89a1cc

Browse files
committed
fix(release): rename GH_TOKEN
1 parent e631314 commit a89a1cc

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/release-plugin.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626
:rocket: _This ticket has been resolved in {release_tag}. See {release_link} for release notes._
2727
2828
secrets:
29-
GITHUB_TOKEN:
29+
GH_TOKEN:
3030
description: "A GITHUB_TOKEN with write permissions for contents, issues, and pull-requests."
3131
required: false
3232

@@ -45,19 +45,20 @@ jobs:
4545
fetch-all: ${{ inputs.fetch-all }}
4646

4747
- name: Build
48-
if: inputs.build != ''
48+
if: ${{ inputs.build }}
4949
run: ${{ inputs.build }}
5050

5151
- name: Release to GitHub
5252
run: ${{ inputs.release }}
5353
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
5555

5656
- run: sleep 1s
5757

5858
- name: Notify release
5959
uses: apexskier/github-release-commenter@v1
60+
if: ${{ inputs.comment-template }}
6061
continue-on-error: true
6162
with:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
6364
comment-template: ${{ inputs.comment-template }}

setup-js/example.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Example of Setup JavsScript
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
autofix:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Setup JS
11+
uses: zotero-plugin-dev/workflows/setup-js@main
12+
13+
- name: Run your command
14+
run: echo "pass"

0 commit comments

Comments
 (0)