Skip to content

Commit

Permalink
Update golangci-lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
housemecn authored Dec 20, 2024
1 parent 1693302 commit c01625e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- enhance/**
- fix/**
- feat/**
pull_request_target:
pull_request:
branches:
- master
- develop
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
# Set the HAS_CHANGES based on the type of event and whether there are code changes
if [[ "${{ github.event_name }}" == "push" && "$HAS_PR" != 'true' && "$HAS_CHANGES" == 'true' ]]; then
echo "NEED_COMMIT=true" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "pull_request_target" && "$HAS_CHANGES" == 'true' ]]; then
elif [[ "${{ github.event_name }}" == "pull_request" && "$HAS_CHANGES" == 'true' ]]; then
echo "NEED_COMMIT=true" >> $GITHUB_ENV
else
echo "NEED_COMMIT=false" >> $GITHUB_ENV
Expand Down Expand Up @@ -144,4 +144,4 @@ jobs:
# git push origin HEAD:$(git rev-parse --abbrev-ref HEAD)
# git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} HEAD:$(git rev-parse --abbrev-ref HEAD)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c01625e

Please sign in to comment.