add fredkbot for push access (#3730)
This commit is contained in:
parent
52f75369ef
commit
35da5bd93e
3 changed files with 12 additions and 5 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -245,8 +245,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@v2.2.1
|
uses: pnpm/action-setup@v2.2.1
|
||||||
|
@ -276,7 +274,9 @@ jobs:
|
||||||
commit: '[ci] release'
|
commit: '[ci] release'
|
||||||
title: '[ci] release'
|
title: '[ci] release'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# Needs access to push to main
|
||||||
|
GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
||||||
|
# Needs access to publish to npm
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
- name: Generate Notification
|
- name: Generate Notification
|
||||||
|
|
2
.github/workflows/format.yml
vendored
2
.github/workflows/format.yml
vendored
|
@ -29,3 +29,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
commit_message: '[ci] format'
|
commit_message: '[ci] format'
|
||||||
branch: ${{ github.head_ref }}
|
branch: ${{ github.head_ref }}
|
||||||
|
# Needs access to push to main
|
||||||
|
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
||||||
|
|
9
.github/workflows/nightly.yml
vendored
9
.github/workflows/nightly.yml
vendored
|
@ -29,12 +29,16 @@ jobs:
|
||||||
- name: Collect stats
|
- name: Collect stats
|
||||||
run: node scripts/stats/index.js
|
run: node scripts/stats/index.js
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# Needs access to collect stats from the GitHub API
|
||||||
|
GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
commit_message: '[ci] collect stats'
|
commit_message: '[ci] collect stats'
|
||||||
branch: ${{ github.head_ref }}
|
branch: ${{ github.head_ref }}
|
||||||
|
# Needs access to push to main
|
||||||
|
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
lockfile:
|
lockfile:
|
||||||
if: github.repository_owner == 'withastro'
|
if: github.repository_owner == 'withastro'
|
||||||
|
@ -61,7 +65,8 @@ jobs:
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
branch: ci/lockfile
|
branch: ci/lockfile
|
||||||
token: ${{ secrets.NIGHTLY_PERSONAL_GITHUB_TOKEN }}
|
# Access token is needed to trigger CI on this PR
|
||||||
|
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
|
||||||
commit-message: '[ci] update lockfile'
|
commit-message: '[ci] update lockfile'
|
||||||
title: '[ci] update lockfile'
|
title: '[ci] update lockfile'
|
||||||
body: >
|
body: >
|
||||||
|
|
Loading…
Reference in a new issue