Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Eden Zimbelman <[email protected]>
27 lines
772 B
YAML
27 lines
772 B
YAML
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
name: Post blocks found in a file
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
run:
|
|
name: Share a travel review to channel
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout the repo
|
|
uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Forward a saved message
|
|
uses: slackapi/[email protected]
|
|
with:
|
|
payload-file-path: "./example-workflows/Technique_3_Slack_Incoming_Webhook/saved.data.json"
|
|
payload-templated: true
|
|
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
webhook-type: incoming-webhook
|
|
env:
|
|
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
|