12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- name: getsentry dispatcher
- on:
-
-
-
-
-
- pull_request_target:
- jobs:
- dispatch:
- name: getsentry dispatch
- runs-on: ubuntu-20.04
- steps:
-
- - uses: actions/checkout@v2
- - name: Check for file changes
- uses: getsentry/paths-filter@v2
- id: changes
- with:
- token: ${{ github.token }}
- filters: .github/file-filters.yml
- - name: getsentry token
- uses: getsentry/action-github-app-token@v1
- id: getsentry
- with:
- app_id: ${{ secrets.SENTRY_INTERNAL_APP_ID }}
- private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
- - name: Dispatch getsentry tests
- uses: actions/github-script@v3
- with:
- github-token: ${{ steps.getsentry.outputs.token }}
- script: |
- require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/scripts/getsentry-dispatch`).dispatch({
- github,
- context,
- fileChanges: ${{ toJson(steps.changes.outputs) }}
- });
|