File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : TokenTest
2+
3+ on :
4+ push :
5+ branches : [ token-test ]
6+ pull_request :
7+ branches : [ token-test ]
8+ jobs :
9+ verify_samples :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Generate GitHub App token
13+ id : app-token
14+ uses : actions/create-github-app-token@v1
15+ with :
16+ app-id : ${{ secrets.TEST_APP_ID }}
17+ private-key : ${{ secrets.TEST_APP_TOKEN }}
18+
19+ - name : Checkout repository
20+ uses : actions/checkout@v4
21+
22+ - name : Test actual push capability
23+ run : |
24+ git config user.name "github-actions[bot]"
25+ git config user.email "github-actions[bot]@users.noreply.github.com"
26+ git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/JetBrains/kotlin-web-site.git
27+ git checkout -b test-app-permissions-${{ github.run_id }}
28+ git commit --allow-empty -m "Test permissions"
29+ git push origin test-app-permissions-${{ github.run_id }}
30+ git push origin --delete test-app-permissions-${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments