Skip to content
This repository was archived by the owner on Apr 27, 2022. It is now read-only.

Commit 208fcd6

Browse files
committed
🐛 FIX: Update docbox script to use commandbox binary on main workflow
1 parent 342f8d4 commit 208fcd6

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.github/workflows/docbox.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: DocBox
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- main
8-
paths:
9-
- '**.cfc'
10-
- '.github/workflows/*.yml'
5+
# branches:
6+
# - master
7+
# - main
8+
# paths:
9+
# - '**.cfc'
10+
# - '.github/workflows/*.yml'
1111

1212
env:
1313
MODULE_ID: sqlFormatter
@@ -19,21 +19,30 @@ jobs:
1919
steps:
2020
- name: Checkout Repo
2121
uses: actions/checkout@v2
22+
23+
- name: Setup Java
24+
uses: actions/setup-java@v2
25+
with:
26+
distribution: "adopt"
27+
java-version: "11"
28+
29+
- name: Setup CommandBox CLI
30+
uses: Ortus-Solutions/setup-commandbox@main
31+
32+
- run: box install commandbox-docbox
2233

2334
- name: Generate Docs
24-
uses: Ortus-Solutions/commandbox-action@v1.0.2
25-
with:
26-
cmd: run-script build:docs
35+
run: box run-script build:docs
2736

2837
- name: Commit Docs to Repo
2938
uses: stefanzweifel/git-auto-commit-action@v4
3039
with:
3140
commit_message: "📖 DOC: Auto-generate API docs"
3241

3342
- name: Setup env.VERSION
34-
uses: Ortus-Solutions/commandbox-action@v1.0.2
35-
with:
36-
cmd: echo "VERSION=`box package version`" >> $GITHUB_ENV
43+
run: echo "VERSION=`box package version`" >> $GITHUB_ENV
44+
45+
- run: echo ${{ env.VERSION }}
3746

3847
- name: Upload API Docs to S3
3948
uses: jakejarvis/s3-sync-action@master

0 commit comments

Comments
 (0)