File tree Expand file tree Collapse file tree 3 files changed +19
-26
lines changed
tests/dummy/app/templates/docs Expand file tree Collapse file tree 3 files changed +19
-26
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,30 @@ jobs:
17
17
with :
18
18
fetch-depth : 0
19
19
token : ${{ secrets.GITHUB_TOKEN }}
20
- - name : Check for tags and conditionally exit
20
+ - name : Check for tags and set short-circuit condition
21
+ id : check-tags
21
22
run : |
22
23
# Fetch tags pointing to the current commit
23
24
TAGS=$(git tag --points-at $GITHUB_SHA)
24
25
echo "Tags found: $TAGS"
25
26
26
27
# Check if a tag exists and if the ref is 'refs/heads/main' or 'refs/heads/master'
27
28
if [ -n "$TAGS" ] && ([[ "${GITHUB_REF}" == "refs/heads/main" ]] || [[ "${GITHUB_REF}" == "refs/heads/master" ]]); then
28
- echo "Commit has a tag and is pushed to the main or master branch. Exiting."
29
- exit 0
30
- fi
29
+ echo "SHORT_CIRCUIT=true" >> $GITHUB_ENV
30
+ else
31
+ echo "SHORT_CIRCUIT=false" >> $GITHUB_ENV
31
32
- uses : pnpm/action-setup@v4
33
+ if : env.SHORT_CIRCUIT == 'false'
32
34
with :
33
35
version : 9
34
36
- uses : actions/setup-node@v4
37
+ if : env.SHORT_CIRCUIT == 'false'
35
38
with :
36
39
node-version : 18
37
40
cache : pnpm
38
41
- name : Install Dependencies
42
+ if : env.SHORT_CIRCUIT == 'false'
39
43
run : pnpm install --no-lockfile
40
44
- name : Deploy Docs
45
+ if : env.SHORT_CIRCUIT == 'false'
41
46
run : pnpm ember deploy production
Original file line number Diff line number Diff line change 1
- Deprecated as of 10.7.0. highlight(lang, code, ...args) has been deprecated.
2
- Deprecated as of 10.7.0. Please use highlight(code, options) instead.
3
- https://github.com/highlightjs/highlight.js/issues/2277
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
1
## v8.0.7 (2024-12-06)
19
2
20
3
## v8.0.6 (2024-12-06)
Original file line number Diff line number Diff line change @@ -112,27 +112,32 @@ jobs:
112
112
with :
113
113
fetch-depth : 0
114
114
token : ${{ secrets.GITHUB_TOKEN }}
115
- - name : Check for tags and conditionally exit
115
+ - name : Check for tags and set short-circuit condition
116
+ id : check-tags
116
117
run : |
117
118
# Fetch tags pointing to the current commit
118
119
TAGS=$(git tag --points-at $GITHUB_SHA)
119
120
echo "Tags found: $TAGS"
120
-
121
+
121
122
# Check if a tag exists and if the ref is 'refs/heads/main' or 'refs/heads/master'
122
123
if [ -n "$TAGS" ] && ([[ "${GITHUB_REF}" == "refs/heads/main" ]] || [[ "${GITHUB_REF}" == "refs/heads/master" ]]); then
123
- echo "Commit has a tag and is pushed to the main or master branch. Exiting."
124
- exit 0
125
- fi
124
+ echo "SHORT_CIRCUIT=true" >> $GITHUB_ENV
125
+ else
126
+ echo "SHORT_CIRCUIT=false" >> $GITHUB_ENV
126
127
- uses : pnpm/action-setup@v4
128
+ if : env.SHORT_CIRCUIT == 'false'
127
129
with :
128
130
version : 9
129
131
- uses : actions/setup-node@v4
132
+ if : env.SHORT_CIRCUIT == 'false'
130
133
with :
131
134
node-version : 18
132
135
cache : pnpm
133
136
- name : Install Dependencies
137
+ if : env.SHORT_CIRCUIT == 'false'
134
138
run : pnpm install --no-lockfile
135
139
- name : Deploy Docs
140
+ if : env.SHORT_CIRCUIT == 'false'
136
141
run : pnpm ember deploy production
137
142
` ` `
138
143
You can’t perform that action at this time.
0 commit comments