Skip to content

Commit

Permalink
Uppercased env.version_changed for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Oct 16, 2024
1 parent 19e61c8 commit b346e31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-amo-on-ff-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ jobs:
PREV_VER=$(git show HEAD^:firefox/extension/manifest.json | grep '"version"' | sed -E 's/.*"version": "(.*)".*/\1/')
if [ "$(printf '%s\n' "$PREV_VER" "$CURRENT_VER" | sort -V | head -n 1)" != "$CURRENT_VER" ] ; then
echo "Extension updated from $PREV_VER to $CURRENT_VER"
echo "version_changed=true" >> $GITHUB_ENV
else echo "version_changed=false" >> $GITHUB_ENV ; fi
echo "VERSION_CHANGED=true" >> $GITHUB_ENV
else echo "VERSION_CHANGED=false" >> $GITHUB_ENV ; fi
- name: Create zipball
if: env.version_changed == 'true'
if: env.VERSION_CHANGED == 'true'
run: |
cd ${{ github.workspace }}/adamlui/you-omnibox/firefox/extension
zip -r ../../extension.zip .
- name: Publish to AMO
if: env.version_changed == 'true'
if: env.VERSION_CHANGED == 'true'
uses: cardinalby/webext-buildtools-firefox-addons-action@v1
with:
zipFilePath: "${{ github.workspace }}/adamlui/you-omnibox/extension.zip"
Expand Down

0 comments on commit b346e31

Please sign in to comment.