This repository has been archived by the owner on May 31, 2024. It is now read-only.
Merge pull request #684 from 18F/archive-readme-update #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Synchronize issue and pull request templates | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
initialize: | |
name: Synchronize issue and pull request templates | |
runs-on: ubuntu-latest | |
steps: | |
# Rather than use a personal access token to interact with the project, we | |
# can use this GitHub App. There's an API for exchanging app credentials | |
# for a short-term token, and we use that API here. | |
- name: get token | |
uses: tibdex/github-app-token@v1 | |
id: app_token | |
with: | |
app_id: ${{ secrets.PROJECT_APP_ID }} | |
installation_id: ${{ secrets.PROJECT_INSTALLATION_ID }} | |
private_key: ${{ secrets.PROJECT_PRIVATE_KEY }} | |
- uses: actions/checkout@v3 | |
# Now we can synchronize | |
- name: sync outwards | |
uses: BetaHuhn/[email protected] | |
with: | |
GH_INSTALLATION_TOKEN: ${{ steps.app_token.outputs.token }} | |
GIT_EMAIL: [email protected] | |
GIT_USERNAME: Guides Sync Bot | |
PR_LABELS: false | |
COMMIT_EACH_FILE: false |