Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmnbom committed Jul 28, 2024
1 parent 35d1b24 commit 94fc92a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

outputs:
version: ${{ steps.version.outputs.full }}
is_prerelease: ${{ steps.version.outputs.prerelease && true || false }}
is_prerelease: ${{ steps.version.outputs.prerelease && 'true' || 'false' }}
dist_source_zip: dist/artifacts/source/ao3-enhancements_source_${{ steps.version.outputs.full }}.zip
dist_chrome_zip: dist/artifacts/chrome/ao3-enhancements_chrome_${{ steps.version.outputs.full }}.zip
dist_firefox_zip: dist/artifacts/firefox/ao3-enhancements_firefox_${{ steps.version.outputs.full }}.zip
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
env:
API_KEY: ${{ secrets.AMO_API_KEY }}
API_SECRET: ${{ secrets.AMO_API_SECRET }}
CHANNEL: ${{ needs.pre.outputs.is_prerelease && 'unlisted' || 'listed' }}
CHANNEL: ${{ needs.pre.outputs.is_prerelease == 'true' && 'unlisted' || 'listed' }}
run: bun x web-ext sign --config=scripts/web-ext.firefox.cjs --channel=$CHANNEL --api-key=$API_KEY --api-secret=$API_SECRET --upload-source-code=${{ needs.pre.outputs.dist_source_zip }}

- name: Rename .xpi to proper version if applicable
Expand All @@ -77,7 +77,7 @@ jobs:
chrome:
runs-on: ubuntu-latest
needs: [pre, build]
if: ${{ needs.pre.outputs.is_prerelease != true }}
if: ${{ needs.pre.outputs.is_prerelease == 'false' }}

steps:
- uses: oven-sh/setup-bun@v2
Expand Down

0 comments on commit 94fc92a

Please sign in to comment.