Skip to content

more tokens

more tokens #22

Workflow file for this run

name: Dry Run
on:
push:
workflow_dispatch:
schedule:
# Try to dry run every 4 hours
- cron: "0 */4 * * *"
jobs:
dry-run:
name: Run sync-team dry-run
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Generate GitHub token (rust-lang)
uses: actions/create-github-app-token@v1
id: rust-lang-token
with:
# GitHub App ID secret name
app-id: ${{ secrets.GH_APP_ID }}
# GitHub App private key secret name
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
# Set the owner, so the token can be used in all repositories
owner: rust-lang
- name: Generate GitHub token (rust-lang-ci)
uses: actions/create-github-app-token@v1
id: rust-lang-ci-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-lang-ci
- name: Generate GitHub token (rust-lang-deprecated)
uses: actions/create-github-app-token@v1
id: rust-lang-deprecated-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-lang-deprecated
- name: Generate GitHub token (rust-lang-nursery)
uses: actions/create-github-app-token@v1
id: rust-lang-nursery-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-lang-nursery
- name: Generate GitHub token (bors-rs)
uses: actions/create-github-app-token@v1
id: bors-rs-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: bors-rs
- name: Generate GitHub token (rust-analyzer)
uses: actions/create-github-app-token@v1
id: rust-analyzer-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-analyzer
- name: Generate GitHub token (rust-embedded)
uses: actions/create-github-app-token@v1
id: rust-embedded-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: rust-embedded
- name: Dry run
env:
GITHUB_TOKEN_RUST-LANG: ${{ steps.rust-lang-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-CI: ${{ steps.rust-lang-ci-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-DEPRECATED: ${{ steps.rust-lang-deprecated-token.outputs.token }}
GITHUB_TOKEN_RUST-LANG-NURSERY: ${{ steps.rust-lang-nursery-token.outputs.token }}
GITHUB_TOKEN_BORS-RS: ${{ steps.bors-rs-token.outputs.token }}
GITHUB_TOKEN_RUST-ANALYZER: ${{ steps.rust-analyzer-token.outputs.token }}
GITHUB_TOKEN_RUST-EMBEDDED: ${{ steps.rust-embedded-token.outputs.token }}
run: cargo run -- --only-print-plan github