File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11name : Build and Test
22
33on :
4+ push :
5+ branches :
6+ - release/**
47 pull_request :
58 types :
69 - opened
710 - synchronize
811 - reopened
912
10- env :
11- # Variables defined in the repository
12- SENTRY_ORG : ${{ vars.SENTRY_ORG }}
13- # For master, we have an environment variable that selects the action-release project
14- # instead of action-release-prs
15- # For other branches: https://sentry-ecosystem.sentry.io/releases/?project=4505075304693760
16- # For master branch: https://sentry-ecosystem.sentry.io/releases/?project=6576594
17- SENTRY_PROJECT : ${{ vars.SENTRY_PROJECT }}
18-
1913jobs :
2014 docker-build :
2115 name : Build & publish Docker images
3933 run : |
4034 TAG=$(yq '... | select(has("uses") and .uses | test("docker://ghcr.io/getsentry/action-release-image:.*")) | .uses' action.yml | awk -F':' '{print $3}')
4135 echo "DOCKER_TAG=$TAG" >> $GITHUB_ENV
36+
37+ if [[ "${{ github.event_name }}" == "pull_request" ]]; then
38+ if [[ "$TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
39+ echo "Error: DOCKER_TAG ($TAG) is not allowed to match `MAJOR.MINOR.PATCH` inside a pull request."
40+ echo "Please rename the docker tag in `action.yml` and try again."
41+ exit 1
42+ fi
43+ fi
4244
4345 - name : Set up QEMU
4446 uses : docker/setup-qemu-action@v3
You can’t perform that action at this time.
0 commit comments