Skip to content

Commit

Permalink
Merge pull request #42 from GSA/feature/DIGITAL-175-branch-name
Browse files Browse the repository at this point in the history
DIGTIAL-175: Explicitly set branch name instead of trying to find it …
  • Loading branch information
mattsqd authored Nov 15, 2024
2 parents d96af1e + b2ddf53 commit b372093
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/run-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down Expand Up @@ -52,7 +57,7 @@ jobs:
status3=0
# Run all commands and capture their exit statuses
vendor/bin/robo validate:branch-name || status1=$? || status1=0
vendor/bin/robo validate:branch-name ${{ steps.extract_branch.outputs.branch }} || status1=$? || status1=0
vendor/bin/robo validate:composer-lock || status3=$? || status3=0
vendor/bin/robo validate:coding-standards || status2=$? || status2=0
Expand Down

0 comments on commit b372093

Please sign in to comment.