From 4383a67fb147943c9762639ad25f18ccb0287db5 Mon Sep 17 00:00:00 2001 From: Adam Hernandez Date: Mon, 5 Feb 2024 11:20:39 -0700 Subject: [PATCH] change if blocks to look for strings --- .github/workflows/test-on-pr.yml | 6 +++--- action.yml | 11 ++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml index 2d499c5..e71cd66 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/test-on-pr.yml @@ -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" \ No newline at end of file diff --git a/action.yml b/action.yml index cd040fe..b4e7e1e 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -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 @@ -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 @@ -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 @@ -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