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:
1717 with :
1818 fetch-depth : 0
1919 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
2122 run : |
2223 # Fetch tags pointing to the current commit
2324 TAGS=$(git tag --points-at $GITHUB_SHA)
2425 echo "Tags found: $TAGS"
2526
2627 # Check if a tag exists and if the ref is 'refs/heads/main' or 'refs/heads/master'
2728 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
3132 - uses : pnpm/action-setup@v4
33+ if : env.SHORT_CIRCUIT == 'false'
3234 with :
3335 version : 9
3436 - uses : actions/setup-node@v4
37+ if : env.SHORT_CIRCUIT == 'false'
3538 with :
3639 node-version : 18
3740 cache : pnpm
3841 - name : Install Dependencies
42+ if : env.SHORT_CIRCUIT == 'false'
3943 run : pnpm install --no-lockfile
4044 - name : Deploy Docs
45+ if : env.SHORT_CIRCUIT == 'false'
4146 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-
181## v8.0.7 (2024-12-06)
192
203## v8.0.6 (2024-12-06)
Original file line number Diff line number Diff line change @@ -112,27 +112,32 @@ jobs:
112112 with :
113113 fetch-depth : 0
114114 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
116117 run : |
117118 # Fetch tags pointing to the current commit
118119 TAGS=$(git tag --points-at $GITHUB_SHA)
119120 echo "Tags found: $TAGS"
120-
121+
121122 # Check if a tag exists and if the ref is 'refs/heads/main' or 'refs/heads/master'
122123 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
126127 - uses : pnpm/action-setup@v4
128+ if : env.SHORT_CIRCUIT == 'false'
127129 with :
128130 version : 9
129131 - uses : actions/setup-node@v4
132+ if : env.SHORT_CIRCUIT == 'false'
130133 with :
131134 node-version : 18
132135 cache : pnpm
133136 - name : Install Dependencies
137+ if : env.SHORT_CIRCUIT == 'false'
134138 run : pnpm install --no-lockfile
135139 - name : Deploy Docs
140+ if : env.SHORT_CIRCUIT == 'false'
136141 run : pnpm ember deploy production
137142` ` `
138143
You can’t perform that action at this time.
0 commit comments