diff options
author | Jan Macku <jamacku@redhat.com> | 2021-11-02 14:01:21 +0100 |
---|---|---|
committer | Jan Macku <jamacku@redhat.com> | 2021-11-02 14:06:17 +0100 |
commit | 8cf11f7660e207887c8f89af176dea900fd8b522 (patch) | |
tree | ac2b20b7f23a13bd169d337782f8ebf926d417e1 | |
parent | acc1df2d3918edaee76d95c88bc93ae50fa58de4 (diff) | |
download | initscripts-8cf11f7660e207887c8f89af176dea900fd8b522.tar initscripts-8cf11f7660e207887c8f89af176dea900fd8b522.tar.gz initscripts-8cf11f7660e207887c8f89af176dea900fd8b522.tar.bz2 initscripts-8cf11f7660e207887c8f89af176dea900fd8b522.tar.xz initscripts-8cf11f7660e207887c8f89af176dea900fd8b522.zip |
ci: disable comments under opened PR in order to fix CI
-rw-r--r-- | .github/workflows/shellcheck_test.yml | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/.github/workflows/shellcheck_test.yml b/.github/workflows/shellcheck_test.yml index 71cbc48d..bc4a4fd6 100644 --- a/.github/workflows/shellcheck_test.yml +++ b/.github/workflows/shellcheck_test.yml @@ -35,18 +35,20 @@ jobs: run: | bash ./.github/workflows/check-shell.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} - - name: Output test results - # Run this step even if previous failed - if: always() - uses: actions/github-script@v5 - with: - # Colored GH comments: https://stackoverflow.com/a/39413824 - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '```diff\n@@ Shellcheck test summary @@\n- added issues: ${{ env.NUMBER_OF_ADDED_ISSUES }}\n+ solved issues: ${{ env.NUMBER_OF_SOLVED_ISSUES }}\n\n# list of edited shell scripts:\n${{ env.LIST_OF_SCRIPTS }}\n```' - }) - + # ! Disable Output, since there is a problem with permissions and GITHUB_TOKEN + # ! https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/ + # TODO: possible solution is to use probot framework to build github app/action # TODO: Set labels based on env.NUMBER_OF_ADDED_ISSUES and env.NUMBER_OF_SOLVED_ISSUES + # - name: Output test results + # # Run this step even if previous failed + # if: always() + # uses: actions/github-script@v5 + # with: + # # Colored GH comments: https://stackoverflow.com/a/39413824 + # script: | + # github.rest.issues.createComment({ + # issue_number: context.issue.number, + # owner: context.repo.owner, + # repo: context.repo.repo, + # body: '```diff\n@@ Shellcheck test summary @@\n- added issues: ${{ env.NUMBER_OF_ADDED_ISSUES }}\n+ solved issues: ${{ env.NUMBER_OF_SOLVED_ISSUES }}\n\n# list of edited shell scripts:\n${{ env.LIST_OF_SCRIPTS }}\n```' + # }) |