Use public key to validate access to the cloud templates (#1619) #465
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 sync | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'openops-cloud/openops' | |
| steps: | |
| - name: Get token from Github App | |
| id: app_token | |
| uses: actions/[email protected] | |
| with: | |
| app-id: ${{ vars.DEVOPS_GITHUB_APP_ID }} | |
| private-key: ${{ secrets.DEVOPS_GITHUB_APP_PEM }} | |
| owner: ${{ github.repository_owner }} | |
| - name: Trigger sync | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app_token.outputs.token }} | |
| run: | | |
| gh workflow run sync.yml -f ref=${{ github.sha }} -R openops-cloud/openops-internal |