We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54f7c73 commit d160e07Copy full SHA for d160e07
.github/workflows/lint.yml
@@ -13,6 +13,9 @@ on:
13
jobs:
14
lint:
15
runs-on: ubuntu-latest
16
+ permissions:
17
+ contents: write
18
+ pull-requests: write
19
env:
20
THUMBNAIL_URL: ${{ vars.THUMBNAIL_URL }}
21
@@ -48,8 +51,8 @@ jobs:
48
51
git config --local user.name "GitHub Action"
49
52
# Ensure we're on the correct branch
50
53
if [ "${{ github.event_name }}" = "pull_request" ]; then
- BRANCH_NAME="pr-${{ github.event.number }}"
- git checkout -b $BRANCH_NAME
54
+ BRANCH_NAME="${{ github.head_ref }}"
55
+ git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
56
else
57
BRANCH_NAME="${{ github.ref_name }}"
58
git checkout $BRANCH_NAME || git checkout -b $BRANCH_NAME
0 commit comments