ci: Create github action for triggering Bitrise E2E builds based on label #3
Workflow file for this run
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: Apply Run E2E Smoke label | |
on: | |
pull_request: | |
types: [opened, ready_for_review] | |
env: | |
E2E_LABEL: 'Run Smoke E2E' | |
jobs: | |
apply-e2e-label: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
permissions: | |
pull-requests: write | |
# contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Apply E2E label | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: yarn run apply-e2e-label |