Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 25, 2023
1 parent 001640f commit 278f35a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/announcements.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Publish Blog Post to Telegram
name: Publish Blog Post to Telegram/Discord
on:
pull_request:
branches: [announcements]
types: [closed]
paths:
- "announcements/*.md"
jobs:
publish_to_telegram:
publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
Expand All @@ -32,12 +32,11 @@ jobs:
echo "Changed Markdown Files: $files_comma_separated"
echo "::set-output name=markdown_files::$files_comma_separated"
- name: Publish to Discord/Telegram
- name: Publish to Telegram/Discord
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
run: |
echo "Publishing to Telegram..."
IFS=',' read -ra files_arr <<< "${{ steps.files.outputs.markdown_files }}"
for file in "${files_arr[@]}"; do
# Skip empty strings which may occur if there's a trailing comma
Expand Down

0 comments on commit 278f35a

Please sign in to comment.