Skip to content

Commit

Permalink
Revert to manual if
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-Hugo committed Aug 26, 2022
1 parent ebcc164 commit 11730c6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,25 @@ jobs:
run: |
previous="${{ steps.previoustag.outputs.tag }}"
current="v${{ steps.version.outputs.prop }}"
should_release="$[$previous != $current]"
echo "::set-output name=previous::$previous"
echo "::set-output name=current::$current"
echo "::set-output name=should_release::$should_release"
echo $[$previous != $current]
- name: Output values
run: |
echo "Previous: ${{ steps.versions.outputs.previous }}"
echo "Current: ${{ steps.versions.outputs.current }}"
echo "Should release? ${{ steps.versions.outputs.should_release }}"
echo "Should release? ${{ steps.versions.outputs.previous != steps.versions.outputs.current }}"
- run: zip -r ./module.zip main.js module.json LICENSE css/ lang/
if: ${{ steps.versions.outputs.should_release }}
if: ${{ steps.versions.outputs.previous != steps.versions.outputs.current }}

- name: Update module release download url
uses: jossef/action-set-json-field@v2
with:
file: module.json
field: download
value: https://github.com/${{ github.repository }}/releases/download/${{ steps.version.outputs.prop }}/module.zip
if: ${{ steps.versions.outputs.should_release }}
if: ${{ steps.versions.outputs.previous != steps.versions.outputs.current }}

- name: Create the GitHub release
uses: softprops/action-gh-release@v1
Expand All @@ -64,4 +60,4 @@ jobs:
files: |
module.zip
module.json
if: ${{ steps.versions.outputs.should_release }}
if: ${{ steps.versions.outputs.previous != steps.versions.outputs.current }}

0 comments on commit 11730c6

Please sign in to comment.