Skip to content

Commit

Permalink
ci: change to pull request target
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencefidelity committed Aug 21, 2023
1 parent 556ccc2 commit bdea3fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
- name: test 2
run: |
echo ${{ (github.event.pull_request.merged != false && github.head_ref == 'main') && 'production' || 'staging' }}
echo ${{ (github.event.pull_request.merged != false && github.head_ref == 'main') && '' || '--tag beta' }}
echo ${{ (github.event.pull_request.merged == true && github.ref_name == 'main') && 'production' || 'staging' }}
echo ${{ (github.event.pull_request.merged == true && github.ref_name == 'main') && '' || '--tag beta' }}
- name: test 3
run: |
echo ${{ env.MATT_ENV }}
echo ${{ env.PACKAGE_TAG }}
echo ${{ env.GITHUB_BRANCH }}
env:
MATT_ENV: ${{ (github.event.pull_request.merged != false && env.GITHUB_BRANCH == 'main') && 'production' || 'staging' }}
PACKAGE_TAG: ${{ (github.event.pull_request.merged != false && env.GITHUB_BRANCH == 'main') && '' || '--tag beta' }}
MATT_ENV: ${{ (github.event.pull_request.merged == true && github.ref_name == 'main') && 'production' || 'staging' }}
PACKAGE_TAG: ${{ (github.event.pull_request.merged == true && github.ref_name == 'main') && '' || '--tag beta' }}

0 comments on commit bdea3fb

Please sign in to comment.