diff --git a/.github/workflows/dispatch-e2e.yaml b/.github/workflows/dispatch-e2e.yaml deleted file mode 100644 index 13c2ad7d..00000000 --- a/.github/workflows/dispatch-e2e.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: dispatch e2e test event - -on: - push: - branches: - - main -permissions: - contents: read - -jobs: - dispatch-event: - runs-on: ubuntu-latest - steps: - - name: Generate token - id: generate_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a - with: - app_id: ${{ secrets.OCMBOT_APP_ID }} - private_key: ${{ secrets.OCMBOT_PRIV_KEY }} - - name: Dispatch e2e test trigger - uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 - with: - token: ${{ steps.generate_token.outputs.token }} - repository: open-component-model/MPAS - event-type: component.controlplane.mpas.updated \ No newline at end of file diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 4474bd24..e25fee8b 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -18,6 +18,8 @@ on: schedule: - cron: '0 6 * * *' # 6 AM UTC everyday for default branch + workflow_dispatch: + permissions: contents: read # for actions/checkout to fetch code