-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38970b5
commit 37ecbf5
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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' | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 }} |