From fa309ca432abea5e0f664abd9b3c5a851d83648a Mon Sep 17 00:00:00 2001 From: Amrih Prakasa Date: Mon, 6 Nov 2023 16:51:17 +0700 Subject: [PATCH] fix: update files (#5) * fix: update files * fix: use slack message string instead of payload * fix: use payload plain * fix: remove unused step --- .github/workflows/monitor-changed-files.yml | 11 ++++------- domain/var/backup.txt | 2 +- domain/var/human.txt | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/monitor-changed-files.yml b/.github/workflows/monitor-changed-files.yml index 87ffd27..7a7aeb7 100644 --- a/.github/workflows/monitor-changed-files.yml +++ b/.github/workflows/monitor-changed-files.yml @@ -26,12 +26,6 @@ jobs: uses: tj-actions/changed-files@v40 with: files_yaml_from_source_file: .github/files-in-observation.yml - - - name: Run step if test file(s) change - id: get-payload - if: steps.changed-files-yaml.outputs.seo_any_changed == 'true' - run: | - echo ::set-output name=slack_payload::'List all the files that have changed in PR https://github.com/${{github.repository}}/pull/${{ github.event.pull_request.number }}: ${{ steps.changed-files-yaml.outputs.seo_all_changed_files }}' - name: Send Slack Notification uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 @@ -39,4 +33,7 @@ jobs: SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK SLACK_WEBHOOK_URL: ${{ secrets.SLACK_HOOK }} with: - payload: ${{ steps.get-payload.outputs.slack_payload }} \ No newline at end of file + payload: | + { + "text": "List all the files that have changed in PR https://github.com/${{github.repository}}/pull/${{ github.event.pull_request.number }}: ${{ steps.changed-files-yaml.outputs.seo_all_changed_files }}" + } \ No newline at end of file diff --git a/domain/var/backup.txt b/domain/var/backup.txt index 1ae6ec6..2a26f95 100644 --- a/domain/var/backup.txt +++ b/domain/var/backup.txt @@ -1,4 +1,4 @@ User-agent: * Allow: asudhasdsa Allow: /.well-known/ -Disallow: /*.pl \ No newline at end of file +Disallow: /*.pladas \ No newline at end of file diff --git a/domain/var/human.txt b/domain/var/human.txt index 1ecf82b..d1d29fb 100644 --- a/domain/var/human.txt +++ b/domain/var/human.txt @@ -1,4 +1,4 @@ User-agent: * -Allow: * +Allow: *sda Allow: /.well-known/ada -Disallow: /*.plasdad \ No newline at end of file +Disallow: /*.plasdadasda \ No newline at end of file