From a9d0729d728718c46a8863aa5546aa4d0adab205 Mon Sep 17 00:00:00 2001 From: Talha Ali <> Date: Wed, 29 Nov 2023 21:12:23 -0600 Subject: [PATCH] replaced run statement to run in bash --- ...setup_secrets_properties_workflow.main.kts | 2 +- .../setup_secrets_properties_workflow.yaml | 32 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/scripts/setup_secrets_properties_workflow.main.kts b/.github/workflows/scripts/setup_secrets_properties_workflow.main.kts index 959055185..f30104bef 100755 --- a/.github/workflows/scripts/setup_secrets_properties_workflow.main.kts +++ b/.github/workflows/scripts/setup_secrets_properties_workflow.main.kts @@ -37,7 +37,7 @@ workflow( name = "Decode secret into file", action = SecretToFileAction() ) - run(command = "stat -f%z secrets.properties") + run(command = "stat -c%s secrets.properties") } }.writeToFile(addConsistencyCheck = false) diff --git a/.github/workflows/setup_secrets_properties_workflow.yaml b/.github/workflows/setup_secrets_properties_workflow.yaml index 5dcff8ce2..b56de5327 100644 --- a/.github/workflows/setup_secrets_properties_workflow.yaml +++ b/.github/workflows/setup_secrets_properties_workflow.yaml @@ -4,23 +4,23 @@ name: 'Setup secrets.properties' on: - workflow_call: { } - push: { } - pull_request: { } + workflow_call: {} + push: {} + pull_request: {} jobs: create_secrets_properties: runs-on: 'ubuntu-latest' steps: - - id: 'step-0' - name: 'Check out' - uses: 'actions/checkout@v4' - - id: 'step-1' - name: 'Decode secret into file' - uses: 'mobiledevops/secret-to-file-action@v1.0.0' - with: - base64-encoded-secret: '${{ secrets.SECRETS_PROPERTIES }}' - filename: 'secrets.properties' - is-executable: 'false' - working-directory: './' - - id: 'step-2' - run: 'stat -f%z secrets.properties' + - id: 'step-0' + name: 'Check out' + uses: 'actions/checkout@v4' + - id: 'step-1' + name: 'Decode secret into file' + uses: 'mobiledevops/secret-to-file-action@v1.0.0' + with: + base64-encoded-secret: '${{ secrets.SECRETS_PROPERTIES }}' + filename: 'secrets.properties' + is-executable: 'false' + working-directory: './' + - id: 'step-2' + run: 'stat -c%s secrets.properties'