Skip to content

Commit 824f802

Browse files
committed
test
1 parent de7dc6a commit 824f802

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818

1919
tests:
2020
name: run
21+
if: "!startsWith(github.head_ref, 'changelog/')"
2122
runs-on: ubuntu-latest
2223
timeout-minutes: 60
2324
strategy:
@@ -27,13 +28,6 @@ jobs:
2728
total: [ 1 ]
2829
index: [ 0 ]
2930
steps:
30-
- name: Skip changelog branches
31-
shell: bash
32-
run: |
33-
if [[ "${{ github.head_ref }}" == changelog/* ]]; then
34-
echo "Skipping tests for changelog branch"
35-
exit 78 # Exit code 78 means "neutral" status
36-
fi
3731
- name: Fetch Outputs
3832
id: tflocal
3933
uses: hashicorp-forge/terraform-cloud-action/outputs@5583d5f554d268ac91b3c37fd0a5e9da2c78c017 # v1.1.0
@@ -66,16 +60,10 @@ jobs:
6660

6761
tests-combine-summaries:
6862
name: Combine Test Reports
63+
if: "!startsWith(github.head_ref, 'changelog/')"
6964
needs: [ tests ]
7065
runs-on: ubuntu-latest
7166
steps:
72-
- name: Skip changelog branches
73-
shell: bash
74-
run: |
75-
if [[ "${{ github.head_ref }}" == changelog/* ]]; then
76-
echo "Skipping tests for changelog branch"
77-
exit 78 # Exit code 78 means "neutral" status
78-
fi
7967
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
8068
with:
8169
node-version: 20
@@ -97,17 +85,11 @@ jobs:
9785

9886
tests-summarize:
9987
name: Summarize Tests
88+
if: "!startsWith(github.head_ref, 'changelog/') && always()"
10089
needs: [ tests ]
10190
runs-on: ubuntu-latest
10291
if: ${{ always() }}
10392
steps:
104-
- name: Skip changelog branches
105-
shell: bash
106-
run: |
107-
if [[ "${{ github.head_ref }}" == changelog/* ]]; then
108-
echo "Skipping tests for changelog branch"
109-
exit 78 # Exit code 78 means "neutral" status
110-
fi
11193
- name: Check tests Status
11294
run: |
11395
if [ "${{ needs.tests.result }}" = "success" ]; then

0 commit comments

Comments
 (0)