Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
chore(workflows): use tibdex/github-app-token to request app token (#24)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

As per title.
  • Loading branch information
fuxingloh authored Jun 20, 2023
1 parent 26a40ba commit efd6620
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/expo-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- cron: '0 0 * * *'

permissions:
contents: write
pull-requests: write
contents: read

jobs:
Upgrade:
Expand All @@ -29,13 +28,19 @@ jobs:
# console.log(JSON.stringify(Object.keys(JSON.parse(require('fs').readFileSync('./bundledNativeModules.json', 'utf8')))))
working-directory: ./app

- id: app_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # v1.8.0
with:
app_id: ${{ variables.KEYCHAIN_BOT_APP_ID }}
private_key: ${{ secrets.KEYCHAIN_BOT_PRIVATE_KEY }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.app_token.outputs.token }}
commit-message: 'bump(deps): `expo-cli upgrade` dependencies'
committer: Levain Keychain Bot <github-actions[bot]@users.noreply.github.com>
author: Levain Keychain Bot <github-actions[bot]@users.noreply.github.com>
committer: Levain Keychain Bot <349640+github-actions[bot]@users.noreply.github.com>
author: Levain Keychain Bot <349640+github-actions[bot]@users.noreply.github.com>
title: 'bump(deps): `expo-cli upgrade` dependencies'
body: |
#### What this PR does / why we need it:
Expand Down

0 comments on commit efd6620

Please sign in to comment.