Skip to content

Commit

Permalink
Update develop PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrouth authored and Blake Mason committed Jun 13, 2022
1 parent 479a583 commit 8b36e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/develop-pr-gae.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build-push-deploy:
name: 'Deploy Preview Version'
runs-on: ubuntu-latest
if: ${{ github.event.action != 'closed'}}
if: ${{ (github.event.action != 'closed') && (startsWith(github.head_ref, 'preview') == true) }}

# Checkout the repository to the GitHub Actions runner
steps:
Expand All @@ -34,7 +34,7 @@ jobs:

- name: Format version name
id: version_name
run: echo "version_name=$(echo \"${{ github.head_ref }}\" | tr -cd '[:alnum:]' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
run: echo "version_name=$(echo \"${{ github.head_ref }}\" | tr -cd '[:alnum:]' | tr '[:upper:]' '[:lower:]' | tr -d 'preview')" >> $GITHUB_ENV

- name: Deploy to App Engine
env:
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
cleanup:
name: 'Cleanup PR Preview'
runs-on: ubuntu-latest
if: ${{ github.event.action == 'closed'}}
if: ${{ (github.event.action == 'closed') && (startsWith(github.head_ref, 'preview') == true) }}

# Checkout the repository to the GitHub Actions runner
steps:
Expand Down

0 comments on commit 8b36e0b

Please sign in to comment.