Trigger commcare-hq staging rebuild #45
This file contains hidden or 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: Trigger commcare-hq staging rebuild | |
| on: | |
| push: | |
| branches: [main] | |
| paths: [commcare-hq-staging.yml] | |
| workflow_dispatch: | |
| jobs: | |
| trigger-rebuild: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.STAGING_BRANCHES_APP_ID }} | |
| private-key: ${{ secrets.STAGING_BRANCHES_APP_PRIVATE_KEY }} | |
| owner: dimagi | |
| repositories: commcare-hq | |
| - name: Trigger rebuild-staging workflow | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: gh workflow run rebuild-staging.yml --repo dimagi/commcare-hq |