Skip to content

chore: cicd e2e hardening #56098

chore: cicd e2e hardening

chore: cicd e2e hardening #56098

name: Run Bitrise E2E Check
on:
issue_comment:
types: [edited, deleted]
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]
merge_group: # Trigger on merge queue events to satisfy the branch protection rules
types: [checks_requested]
env:
E2E_LABEL: 'Run Smoke E2E'
NO_E2E_LABEL: 'No E2E Smoke Needed'
E2E_PIPELINE: 'pr_smoke_e2e_pipeline'
WORKFLOW_NAME: 'run-bitrise-e2e-check'
jobs:
run-bitrise-e2e-check:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
checks: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Check Bitrise E2E Status
env:
BITRISE_BUILD_TRIGGER_TOKEN: ${{ secrets.BITRISE_BUILD_TRIGGER_TOKEN }}
BITRISE_APP_ID: ${{ secrets.BITRISE_APP_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The status check created under this workflow may be bucketed under another check suite in Github actions. This is a result of workflows with the same triggers.
# For example, the status check may show as `CLA Signature Bot / Bitrise E2E Status`. This is a bug on Github's UI. https://github.com/orgs/community/discussions/24616
run: yarn run run-bitrise-e2e-check
working-directory: '.github/scripts'