CHANGE @W-17053004@ Polished run command output #1518
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: validate-pr | |
on: | |
pull_request: | |
types: [edited, opened, reopened, synchronize] | |
jobs: | |
# We want to prevent cross-contamination between the 3.x and 4.x pipelines. So we should prevent PRs | |
# based on this flow to merge into `dev-3` or `release-3`. | |
verify_target_branch: | |
runs-on: ubuntu-latest | |
steps: | |
- if: ${{ github.base_ref == 'dev-3' || github.base_ref == 'release-3' }} | |
run: | | |
echo "Forbidden to merge this branch into dev-3 or release-3" | |
exit 1 | |
# We need to verify that the Pull Request's title matches the desired format. | |
verify_pr_title: | |
runs-on: ubuntu-latest | |
name: Verify that PR title contains well-formed GUS work item tag. | |
steps: | |
# Private actions must check out repo first. | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Verify PR title | |
uses: ./github-actions/verify-pr-title | |
id: verify_pr_title | |
# Separately, we also need to run all of our tests. | |
run_tests: | |
uses: ./.github/workflows/run-tests.yml |