Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/fix-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v7
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
fetch-depth: 2
allow-unsafe-pr-checkout: true

- name: Check Changed Sensitive Files
id: changed-sensitive
Expand All @@ -33,6 +36,7 @@ jobs:
- name: Get Latest Commit Message
id: skip-fix
run: |
git log
echo 'commit_message<<EOF' >> $GITHUB_OUTPUT
git log -1 --pretty=%B ${{ github.event.pull_request.head.sha }} >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -74,8 +78,7 @@ jobs:
needs: check-sensitive
if: |
always() &&
needs.check-sensitive.outputs.skip_fix != 'true' &&
needs.check-sensitive.outputs.require_approval == 'true'
needs.check-sensitive.outputs.require_approval != 'false'

outputs:
changes_detected: false
Expand Down
Loading