5c804257ceb5b3062b876afae290adf72c474aad
- Author
- Carlo Sala <carlosalag@protonmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
ci: use `actions/create-github-app-token` (#13233)
Diff
1diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml
2index b4a17912b8cd36d929460662b3dc1e2fbdf4b7d5..0b8eeda9336ad4d94de028b59f08fb87c7fcf5b2 100644
3--- a/.github/workflows/dependencies.yml
4+++ b/.github/workflows/dependencies.yml
5@@ -18,11 +18,11 @@ jobs:
6 with:
7 fetch-depth: 0
8 - name: Authenticate as @ohmyzsh
9- id: generate_token
10- uses: ohmyzsh/github-app-token@v2
11+ id: generate-token
12+ uses: actions/create-github-app-token@v2
13 with:
14- app_id: ${{ secrets.OHMYZSH_APP_ID }}
15- private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
16+ app-id: ${{ secrets.OHMYZSH_APP_ID }}
17+ private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
18 - name: Setup Python
19 uses: actions/setup-python@v5
20 with:
21@@ -30,7 +30,7 @@ jobs:
22 cache: "pip"
23 - name: Process dependencies
24 env:
25- GH_TOKEN: ${{ steps.generate_token.outputs.token }}
26+ GH_TOKEN: ${{ steps.generate-token.outputs.token }}
27 GIT_APP_NAME: ohmyzsh[bot]
28 GIT_APP_EMAIL: 54982679+ohmyzsh[bot]@users.noreply.github.com
29 TMP_DIR: ${{ runner.temp }}
30diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml
31index 2c2a1cdaafd122d92ec7ec3746f46950b34d0973..8fd4e15d46e3d6ea14cf91d0cb7a944447ba2fea 100644
32--- a/.github/workflows/project.yml
33+++ b/.github/workflows/project.yml
34@@ -17,13 +17,13 @@ jobs:
35 if: github.repository == 'ohmyzsh/ohmyzsh'
36 steps:
37 - name: Authenticate as @ohmyzsh
38- id: generate_token
39- uses: ohmyzsh/github-app-token@v2
40+ id: generate-token
41+ uses: actions/create-github-app-token@v2
42 with:
43- app_id: ${{ secrets.OHMYZSH_APP_ID }}
44- private_key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
45+ app-id: ${{ secrets.OHMYZSH_APP_ID }}
46+ private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}
47 - name: Store app token
48- run: echo "GH_TOKEN=${{ steps.generate_token.outputs.token }}" >> "$GITHUB_ENV"
49+ run: echo "GH_TOKEN=${{ steps.generate-token.outputs.token }}" >> "$GITHUB_ENV"
50 - name: Read project data
51 env:
52 ORGANIZATION: ohmyzsh