Skip to content

Commit

Permalink
Merge branch 'main' into testedit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Aug 7, 2023
2 parents dad0831 + 651be55 commit 5154b72
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,10 @@ jobs:
run: |
if ${{ github.event_name == 'push' }}; then
echo "branch=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
if ${{ github.ref_name == 'main' }}; then
echo "environment=Production" >> "$GITHUB_OUTPUT"
else
echo "environment=Preview" >> "$GITHUB_OUTPUT"
fi
elif ${{ github.event_name == 'pull_request_target' }}; then
echo "branch=pull/${{ github.event.number }}/merge" >> "$GITHUB_OUTPUT"
if ${{ github.event.pull_request.head.repo.html_url != github.event.repository.html_url }}; then
echo "environment=External PR" >> "$GITHUB_OUTPUT"
else
echo "environment=Preview" >> "$GITHUB_OUTPUT"
fi
else
exit 1
Expand Down

0 comments on commit 5154b72

Please sign in to comment.