Skip to content

Commit

Permalink
if PR and starts with epic-
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Jan 31, 2024
1 parent 8fd5efd commit a2edf61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ jobs:

# Extract branch name
- name: Extract branch name
# if: startsWith(github.ref, 'refs/heads/epic-')
if: github.event.number && startsWith(github.head_ref, 'epic-')
shell: bash
## Remove the prefix "refs/heads/", allow only alphanumeric characters and convert to lower case,
run: |
echo "branch=$(echo $GITHUB_HEAD_REF | sed 's/refs\/heads\///' | sed 's/[^a-z0-9]/_/ig' | sed 's/[A-Z]/\L&/g')" >> $GITHUB_OUTPUT
echo "GitHub Ref: $GITHUB_REF"
echo "GitHub Head Ref: $GITHUB_HEAD_REF"
echo "GitHub Output: $GITHUB_OUTPUT"
echo "GitHub event number: $GITHUB_EVENT_NUMBER"
# # Deploy the main branch to staging
# - name: Deploy to the staging S3
Expand Down

0 comments on commit a2edf61

Please sign in to comment.