Skip to content

Commit 12e6bcd

Browse files
committed
tmp
1 parent 38d3eac commit 12e6bcd

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/token-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

0 commit comments

Comments
 (0)