Skip to content

Commit

Permalink
change if blocks to look for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ahernandez411 committed Feb 5, 2024
1 parent 3cec44b commit 4383a67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- name: Run Test
uses: ./
with:
save-to-artifact: true
save-to-branch: false
save-to-wiki: false
save-to-artifact: "true"
save-to-branch: "false"
save-to-wiki: "false"


11 changes: 4 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@ description: Reads the workflow files in the repo and creates a wiki page with t
inputs:
save-to-artifact:
description: If true, save to documentation as an artifact
type: boolean
required: true
save-to-branch:
description: If true, save to documentation to a branch
type: boolean
required: true
save-to-wiki:
description: If true, save to documentation to repository's wiki
type: boolean
required: true

runs:
Expand All @@ -30,7 +27,7 @@ runs:
pip install PyYAML==6.0.1 cron_descriptor==1.4.0
- name: Checkout Repo Wiki
if: ${{ inputs.save-to-wiki }} == true
if: ${{ inputs.save-to-wiki }} == 'true'
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
Expand Down Expand Up @@ -275,7 +272,7 @@ runs:
print("DONE!")
- name: Save Changes to Wiki
if: ${{ inputs.save-to-wiki }} == true
if: ${{ inputs.save-to-wiki }} == 'true'
shell: bash
run: |
cd wiki
Expand All @@ -285,7 +282,7 @@ runs:
git diff-index --quiet HEAD || git commit -m "Update wiki with latest workflow documentation" && git push
- name: Save Changes to Branch
if: ${{ inputs.save-to-branch }} == true
if: ${{ inputs.save-to-branch }} == 'true'
shell: bash
run: |
cd wiki
Expand All @@ -297,7 +294,7 @@ runs:
git push --set-upstream origin actions-documentation
- name: Save Changes to Artifact
if: ${{ inputs.save-to-artifact }} == true
if: ${{ inputs.save-to-artifact }} == 'true'
uses: actions/upload-artifact@v4
with:
name: actions-documentation
Expand Down

0 comments on commit 4383a67

Please sign in to comment.