Skip to content

Commit

Permalink
[GHA] Fix 'ci' build detection
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiArthurB committed Oct 5, 2021
1 parent 1fe08f0 commit fee008e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/github-travis.yml
Expand Up @@ -43,9 +43,9 @@ jobs:
env:
MSG: ${ github.event.head_commit.message }

- name: Set Travis env
- name: Check if should release version
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event.head_commit.message }}" == "ci" ]]; then
if [[ "${{ github.event_name }}" == "workflow_dispatch" || "${{ github.event.head_commit.message }}" == *"ci"* ]]; then
echo "The action will continue and create a release"
echo "CONTINUE=true" >> $GITHUB_ENV
else
Expand All @@ -63,6 +63,7 @@ jobs:

# cf https://github.com/actions/upload-artifact/issues/246
- name: Move artefacts to root tree
if: env.CONTINUE == 'true'
run: |
mv ${{ github.workspace }}/ummisco.gama.product/target/products/Gama*zip ${{ github.workspace }}
mv ${{ github.workspace }}/ummisco.gama.product/extraresources/entitlements.plist ${{ github.workspace }}
Expand Down

0 comments on commit fee008e

Please sign in to comment.