Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Davidson committed Aug 14, 2024
1 parent 5e6ae02 commit 04bd34d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/entropy-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,18 @@ jobs:
fetch-depth: 0 # Ensure the action respects the desired fetch depth

- name: Set PR Branch Environment Variables
run: |
echo "PR_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
echo "MAIN_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.actions.setEnv({
name: 'PR_BRANCH',
value: github.context.payload.pull_request.head.ref
})
github.actions.setEnv({
name: 'MAIN_BRANCH',
value: github.context.payload.pull_request.base.ref
})
# Runs the entropy calculation script and saves the output to a file
- name: Process repository entropy
Expand Down

0 comments on commit 04bd34d

Please sign in to comment.