From 82e2b80800335524e3b25e4dd25b46b2e836931d Mon Sep 17 00:00:00 2001 From: "naotama (Naoki KOBAYASHI)" Date: Mon, 14 Aug 2023 23:57:26 +0900 Subject: [PATCH 1/3] Added action lint workflow --- .github/workflows/ActionLint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ActionLint.yml diff --git a/.github/workflows/ActionLint.yml b/.github/workflows/ActionLint.yml new file mode 100644 index 000000000..8bbb57294 --- /dev/null +++ b/.github/workflows/ActionLint.yml @@ -0,0 +1,19 @@ +on: + push: + paths: + - '.github/workflows/**' + +name: "Trigger: Push action" +permissions: {} + +jobs: + actionlint: + name: Actionlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run actionlint + run: | + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + ./actionlint -color + shell: bash \ No newline at end of file From f365e739c73a2d9c34528ca64c265c835104ecd1 Mon Sep 17 00:00:00 2001 From: "naotama (Naoki KOBAYASHI)" Date: Tue, 15 Aug 2023 01:30:56 +0900 Subject: [PATCH 2/3] Fixed shell check --- .github/workflows/StagePullRequest.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/StagePullRequest.yml b/.github/workflows/StagePullRequest.yml index 15f6f6a1c..78c72974b 100644 --- a/.github/workflows/StagePullRequest.yml +++ b/.github/workflows/StagePullRequest.yml @@ -110,11 +110,11 @@ jobs: if: steps.upload.conclusion == 'success' run: | if [[ "${{ steps.upload.outcome }}" == "success" ]]; then - echo "deployment-url=${{ steps.upload.outputs.distribution_url }}" >> $GITHUB_OUTPUT - echo "description=Deployed an app successfully. Please try it through DeployGate!" >> $GITHUB_OUTPUT + echo "deployment-url=${{ steps.upload.outputs.distribution_url }}" >> "$GITHUB_OUTPUT" + echo "description=Deployed an app successfully. Please try it through DeployGate!" >> "$GITHUB_OUTPUT" else - echo "deployment-url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT - echo "description=Staging an app failed. Please check the workflow." >> $GITHUB_OUTPUT + echo "deployment-url=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT" + echo "description=Staging an app failed. Please check the workflow." >> "$GITHUB_OUTPUT" fi - uses: ./gh-actions/actions/commit-deployment if: steps.upload.conclusion == 'success' From 19c7cbdfba06b36002c6735c0fc4c75f08c99b88 Mon Sep 17 00:00:00 2001 From: "naotama (Naoki KOBAYASHI)" Date: Tue, 15 Aug 2023 02:10:29 +0900 Subject: [PATCH 3/3] Fix the version of action lint to install --- .github/workflows/ActionLint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ActionLint.yml b/.github/workflows/ActionLint.yml index 8bbb57294..504af6d73 100644 --- a/.github/workflows/ActionLint.yml +++ b/.github/workflows/ActionLint.yml @@ -14,6 +14,6 @@ jobs: - uses: actions/checkout@v3 - name: Run actionlint run: | - bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.25 ./actionlint -color shell: bash \ No newline at end of file