Skip to content

Commit 3399a75

Browse files
committed
cicd: update actions to use native conditional
This was added in a recent GitHub Runner release. Signed-off-by: Hank Donnay <[email protected]>
1 parent c65579f commit 3399a75

File tree

2 files changed

+5
-40
lines changed

2 files changed

+5
-40
lines changed

.github/actions/conditional/action.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/actions/documentation/action.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,9 @@ runs:
2121
else
2222
exec mdbook build --dest-dir "./book/${d}"
2323
fi
24-
- uses: ./.github/actions/conditional
24+
- if: ${{ inputs.publish == 'true' }}
25+
uses: peaceiris/[email protected]
2526
with:
26-
if: ${{ inputs.publish }}
27-
step: |
28-
- uses: peaceiris/actions-gh-pages@v3
29-
with:
30-
user_name: 'github-actions[bot]'
31-
user_email: 'github-actions[bot]@users.noreply.github.com'
32-
github_token: ${{ inputs.token }}
33-
publish_dir: ./book
34-
keep_files: true
27+
github_token: ${{ inputs.token }}
28+
publish_dir: ./book
29+
keep_files: true

0 commit comments

Comments
 (0)