Skip to content

Commit

Permalink
fix: update files (#5)
Browse files Browse the repository at this point in the history
* fix: update files

* fix: use slack message string instead of payload

* fix: use payload plain

* fix: remove unused step
  • Loading branch information
prakasa-tkpd authored Nov 6, 2023
1 parent 911623f commit fa309ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/monitor-changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@ 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
env:
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_HOOK }}
with:
payload: ${{ steps.get-payload.outputs.slack_payload }}
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 }}"
}
2 changes: 1 addition & 1 deletion domain/var/backup.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: asudhasdsa
Allow: /.well-known/
Disallow: /*.pl
Disallow: /*.pladas
4 changes: 2 additions & 2 deletions domain/var/human.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
User-agent: *
Allow: *
Allow: *sda
Allow: /.well-known/ada
Disallow: /*.plasdad
Disallow: /*.plasdadasda

0 comments on commit fa309ca

Please sign in to comment.