Skip to content

Commit 7ffd999

Browse files
committed
fix: update workflow input descriptions and change checkout action version
1 parent 91784e5 commit 7ffd999

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/distribute.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
workflow_dispatch:
55
inputs:
66
target:
7-
description: 'Which store to deploy to?'
7+
description: 'Select the store to deploy to'
88
required: true
99
default: 'all'
1010
type: choice
1111
options:
1212
- chrome
1313
- firefox
1414
- all
15-
testMode:
16-
description: 'Run in test mode without publishing?'
15+
dryrun:
16+
description: 'Run in dry mode without publishing'
1717
required: true
1818
default: false
1919
type: boolean
@@ -29,14 +29,17 @@ env:
2929
jobs:
3030
build-and-deploy:
3131
runs-on: ubuntu-latest
32-
32+
if: ${{github.ref_type == 'tag' }}
3333
strategy:
3434
fail-fast: false
3535
matrix:
3636
browser: [chrome, firefox]
3737

3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v6
40+
with:
41+
fetch-depth: 0
42+
ref: ${{ github.ref_name }}
4043

4144
- uses: actions/setup-node@v4
4245
with:
@@ -50,7 +53,7 @@ jobs:
5053
run: yarn build:${{ matrix.browser }}
5154

5255
- name: '⬆️ Upload to Chrome Web Store'
53-
if: ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'chrome') && matrix.browser == 'chrome' && github.event.inputs.testMode == 'false' }}
56+
if: ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'chrome') && matrix.browser == 'chrome' && github.event.inputs.dryrun == 'false' }}
5457
run: >
5558
npx chrome-webstore-upload-cli@3 upload
5659
--source chrome_extension.zip
@@ -63,7 +66,7 @@ jobs:
6366
REFRESH_TOKEN: ${{ secrets.CHROME_EXTENSION_REFRESH_TOKEN }}
6467

6568
- name: '⬆️ Upload to Firefox Add-on Store'
66-
if: ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'firefox') && matrix.browser == 'firefox' && github.event.inputs.testMode == 'false' }}
69+
if: ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'firefox') && matrix.browser == 'firefox' && github.event.inputs.dryrun == 'false' }}
6770
uses: wdzeng/firefox-addon@v1
6871
with:
6972
jwt-issuer: ${{ secrets.WEB_EXT_API_KEY }}

0 commit comments

Comments
 (0)