add merge queue check for e2e #1
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: E2E Merge Queue Check | ||
on: | ||
push: | ||
branches: main | ||
pull_request: | ||
merge_group: | ||
types: [checks_requested] | ||
jobs: | ||
apply-smoke-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Apply "Run Smoke E2E" label | ||
uses: octokit/[email protected] | ||
with: | ||
route: POST /repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels | ||
labels: 'Run Smoke E2E' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run-e2e-check: | ||
uses: ./.github/workflows/bitrise-e2e-check.yml # Reuse the bitrise check workflow | ||
with: | ||
pr_number: ${{ github.event.number || github.event.pull_request.number }} | ||
e2e_label: 'Run Smoke E2E' | ||
e2e_pipeline: 'pr_smoke_e2e_pipeline' | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BITRISE_BUILD_TRIGGER_TOKEN: ${{ secrets.BITRISE_BUILD_TRIGGER_TOKEN }} | ||
BITRISE_APP_ID: ${{ secrets.BITRISE_APP_ID }} | ||