|
78 | 78 | if: contains(github.event.pull_request.labels.*.name, 'barretenberg-ci') || (github.event.pull_request.base.ref == 'merge-train/barretenberg') |
79 | 79 | run: echo "CI_BARRETENBERG=1" >> $GITHUB_ENV |
80 | 80 |
|
| 81 | + - name: CI Release PR Override |
| 82 | + if: contains(github.event.pull_request.labels.*.name, 'ci-release-pr') |
| 83 | + run: echo "CI_RELEASE_PR=1" >> $GITHUB_ENV |
| 84 | + |
81 | 85 | # Allow full concurrency for merge-train PRs, one-run-per-branch for everything else. |
82 | 86 | - name: Set Instance Postfix for merge-train |
83 | 87 | if: startsWith(github.event.pull_request.head.ref, 'merge-train/') |
@@ -139,17 +143,21 @@ jobs: |
139 | 143 | EXTERNAL_ETHEREUM_CONSENSUS_HOST_API_KEY: ${{ secrets.GCP_SEPOLIA_API_KEY }} |
140 | 144 | EXTERNAL_ETHEREUM_CONSENSUS_HOST_API_KEY_HEADER: "X-goog-api-key" |
141 | 145 | GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} |
| 146 | + PR_NUMBER: ${{ github.event.pull_request.number }} |
142 | 147 | run: | |
143 | 148 | if [ "${{ github.event_name }}" == "merge_group" ] || [ "${CI_MERGE_QUEUE:-0}" -eq 1 ]; then |
144 | 149 | exec ./ci.sh merge-queue |
| 150 | + elif [ "${CI_RELEASE_PR:-0}" -eq 1 ]; then |
| 151 | + git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} |
| 152 | + tag_name="v0.0.1-commit.$(git rev-parse --short HEAD)" |
| 153 | + git tag ${tag_name} |
| 154 | + git push origin ${tag_name} |
145 | 155 | elif [ "${CI_FULL:-0}" -eq 1 ]; then |
146 | 156 | exec ./ci.sh full |
147 | 157 | elif [ "${CI_DOCS:-0}" -eq 1 ]; then |
148 | 158 | exec ./ci.sh docs |
149 | 159 | elif [ "${CI_BARRETENBERG:-0}" -eq 1 ]; then |
150 | 160 | exec ./ci.sh barretenberg |
151 | | - elif [ "${{ contains(github.ref, '-nightly.') }}" == "true" ] || [ "${{ contains(github.ref, '-rc.') }}" == "true" ]; then |
152 | | - exec ./ci.sh nightly |
153 | 161 | elif [ "${{ startsWith(github.ref, 'refs/tags/v') }}" == "true" ]; then |
154 | 162 | exec ./ci.sh release |
155 | 163 | else |
|
0 commit comments