Skip to content

Commit

Permalink
Merge pull request #932 from CruGlobal/improve-previews
Browse files Browse the repository at this point in the history
No-Jira - Improve Previews Workflows
  • Loading branch information
wrandall22 authored Apr 30, 2024
2 parents c427b08 + ce583dc commit 6370c51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/preview-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
output-credentials: true
- name: set branchname env
id: setbranchname
run: |
# use GITHUB_HEAD_REF that is set to PR source branch
echo "branch=$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT"
- name: cleanup PR preview branch
uses: yinlinchen/[email protected]
with:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
deploy:
if: contains(github.event.pull_request.labels.*.name, 'Preview Environment')
if: contains(github.event.label.name, 'Preview Environment')
runs-on: ubuntu-latest
continue-on-error: true
permissions:
Expand All @@ -21,11 +21,6 @@ jobs:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
output-credentials: true
- name: set branch name env
id: setbranchname
run: |
# use GITHUB_HEAD_REF that is set to PR source branch
echo "branch=$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT"
- name: deploy PR preview
uses: CruGlobal/amplify-preview-actions@handle-existing-branches
with:
Expand Down

0 comments on commit 6370c51

Please sign in to comment.