Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Dec 29, 2024
1 parent 38970b5 commit 37ecbf5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/duster-fix-blame.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ jobs:
echo "github.head_ref: ${{ github.head_ref }}"
echo "github.ref: ${{ github.ref }}"
- uses: actions/checkout@v4
- name: Checkout Code
uses: actions/checkout@v4
with:
# Ensure that the correct branch is being checked out for PRs
ref: ${{ github.head_ref }}
# Ensure that the correct branch is being checked out for PRs or normal branches
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}

- name: "Duster Fix"
uses: tighten/duster-action@v3
Expand All @@ -35,6 +36,7 @@ jobs:
commit_message: "style: automated changes to code style"
commit_user_name: GitHub Action
commit_user_email: [email protected]
branch: ${{ github.event.pull_request.head.ref || github.ref_name }}

- name: Ignore Duster commit in git blame
if: steps.auto_commit_action.outputs.changes_detected == 'true'
Expand All @@ -45,3 +47,4 @@ jobs:
commit_message: "ci: ignoring commit change in git blame"
commit_user_name: GitHub Action
commit_user_email: [email protected]
branch: ${{ github.event.pull_request.head.ref || github.ref_name }}
16 changes: 12 additions & 4 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Debug Ref Context
run: |
echo "github.event.pull_request.head.ref: ${{ github.event.pull_request.head.ref }}"
echo "github.ref_name: ${{ github.ref_name }}"
echo "github.head_ref: ${{ github.head_ref }}"
echo "github.ref: ${{ github.ref }}"
- name: Checkout Code
uses: actions/checkout@v4
with:
# Ensure that the correct ref is being used for PRs or normal branches
ref: ${{ github.head_ref || github.ref_name }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}

- uses: actions/setup-node@v4
with:
node-version: "20.x"
Expand All @@ -21,4 +29,4 @@ jobs:
commit_message: "style: automated changes to blade files"
commit_user_name: GitHub Action
commit_user_email: [email protected]
branch: ${{ github.head_ref || github.ref_name }}
branch: ${{ github.event.pull_request.head.ref || github.ref_name }}

0 comments on commit 37ecbf5

Please sign in to comment.