File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 88jobs :
99 auto_pr :
1010 runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+ actions : read
1115 steps :
1216 - name : Checkout code
1317 uses : actions/checkout@v4
8084 tree || ls -R
8185
8286 - name : Commit package to source repo
87+ env :
88+ GITHUB_TOKEN : ${{ secrets.PLUGIN_ACTION }}
8389 run : |
8490 # Create releases directory if it doesn't exist
8591 mkdir -p releases
@@ -88,10 +94,13 @@ jobs:
8894 PACKAGE_NAME="${{ steps.get_basic_info.outputs.plugin_name }}-${{ steps.get_basic_info.outputs.version }}.difypkg"
8995 cp "$PACKAGE_NAME" releases/
9096
91- # Configure git
97+ # Configure git with token authentication
9298 git config user.name "GitHub Actions"
9399 git config user.email "[email protected] " 94100
101+ # Set up remote URL with token for authentication
102+ git remote set-url origin https://x-access-token:${{ secrets.PLUGIN_ACTION }}@github.com/${{ github.repository }}.git
103+
95104 # Add and commit the package file
96105 git add releases/"$PACKAGE_NAME"
97106
You can’t perform that action at this time.
0 commit comments