[DOCS-9465] adding Synthetics templates #46589
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: Code-Freeze | |
# Stop the current running job if a new push is made to the PR | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
# only target `master` branch | |
- master | |
permissions: | |
contents: read | |
jobs: | |
check-code-freeze-status: | |
runs-on: ubuntu-latest | |
env: | |
FREEZE_ENABLED: ${{ vars.FREEZE_ENABLED }} | |
steps: | |
- name: Check Status | |
run: | | |
if [ "$FREEZE_ENABLED" = "true" ]; then | |
echo "Code Freeze is enabled" | |
exit 1 | |
else | |
exit 0 | |
fi |