Skip to content

Commit

Permalink
Debug stage switching
Browse files Browse the repository at this point in the history
  • Loading branch information
berryd committed Dec 22, 2023
1 parent af6f824 commit bf83e49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ jobs:
run: |
if [[ "$GITHUB_REF" =~ ^refs/heads/dependabot/.* ]] || [[ "$GITHUB_REF" =~ ^refs/remotes/origin/snyk-upgrade-* ]] || [[ "$GITHUB_REF" =~ ^refs/remotes/origin/snyk-fix-* ]]; then
echo "branch_name=`echo ${GITHUB_REF#refs/heads/} | md5sum | head -c 10 | sed 's/^/x/'`" >> $GITHUB_ENV
echo "Found a long branch name $GITHUB_ENV"
echo "Found a long branch name"
cat $GITHUB_ENV
else
echo "branch_name=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "DID NOT FIND a long branch name $GITHUB_ENV"
echo "DID NOT FIND a long branch name"
cat $GITHUB_ENV
fi
- uses: actions/checkout@v3
- name: Validate branch name
Expand Down

0 comments on commit bf83e49

Please sign in to comment.