|
2 | 2 | on: |
3 | 3 | pull_request: |
4 | 4 | branches: ['**', '!changeset-release/**'] |
5 | | - push: |
6 | | - branches: ['main'] |
| 5 | + # CI only runs on PRs - merge queue validates before merge to main |
7 | 6 |
|
8 | 7 | concurrency: |
9 | 8 | group: ${{ github.workflow }}-${{ github.ref }} |
|
43 | 42 | with: |
44 | 43 | cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }} |
45 | 44 |
|
46 | | - - name: Set Nx SHAs for affected commands |
47 | | - uses: nrwl/nx-set-shas@v4 |
| 45 | + - name: Set Nx base for affected commands |
| 46 | + run: | |
| 47 | + echo "NX_BASE=origin/main" >> $GITHUB_ENV |
| 48 | + echo "NX_HEAD=HEAD" >> $GITHUB_ENV |
48 | 49 |
|
49 | 50 | - name: Verify NX_BASE and NX_HEAD are set |
50 | 51 | run: echo "BASE=$NX_BASE HEAD=$NX_HEAD" |
|
85 | 86 | with: |
86 | 87 | cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }} |
87 | 88 |
|
88 | | - - name: Set Nx SHAs for affected commands |
89 | | - uses: nrwl/nx-set-shas@v4 |
| 89 | + - name: Set Nx base for affected commands |
| 90 | + run: | |
| 91 | + echo "NX_BASE=origin/main" >> $GITHUB_ENV |
| 92 | + echo "NX_HEAD=HEAD" >> $GITHUB_ENV |
90 | 93 |
|
91 | 94 | - name: Verify NX_BASE and NX_HEAD are set |
92 | 95 | run: echo "BASE=$NX_BASE HEAD=$NX_HEAD" |
@@ -126,8 +129,10 @@ jobs: |
126 | 129 |
|
127 | 130 | - uses: ./.github/actions/setup |
128 | 131 |
|
129 | | - - name: Set Nx SHAs for affected commands |
130 | | - uses: nrwl/nx-set-shas@v4 |
| 132 | + - name: Set Nx base for affected commands |
| 133 | + run: | |
| 134 | + echo "NX_BASE=origin/main" >> $GITHUB_ENV |
| 135 | + echo "NX_HEAD=HEAD" >> $GITHUB_ENV |
131 | 136 |
|
132 | 137 | - name: Verify NX_BASE and NX_HEAD are set |
133 | 138 | run: echo "BASE=$NX_BASE HEAD=$NX_HEAD" |
@@ -202,8 +207,10 @@ jobs: |
202 | 207 |
|
203 | 208 | - uses: ./.github/actions/setup |
204 | 209 |
|
205 | | - - name: Set Nx SHAs for affected commands |
206 | | - uses: nrwl/nx-set-shas@v4 |
| 210 | + - name: Set Nx base for affected commands |
| 211 | + run: | |
| 212 | + echo "NX_BASE=origin/main" >> $GITHUB_ENV |
| 213 | + echo "NX_HEAD=HEAD" >> $GITHUB_ENV |
207 | 214 |
|
208 | 215 | - name: Verify NX_BASE and NX_HEAD are set |
209 | 216 | run: echo "BASE=$NX_BASE HEAD=$NX_HEAD" |
|
0 commit comments