Skip to content

Commit

Permalink
[Template merge] Post to private channels for private repos, include …
Browse files Browse the repository at this point in the history
…commit message
  • Loading branch information
snomos committed Nov 7, 2023
1 parent f864927 commit 08ed1c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/zulip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Get ISO code
id: isocode
run: |
ISO=$(echo ${{github.event.repository.name}} | cut -d'-' -f2)
ISO=$(echo ${{github.event.repository.name}} | cut -d'-' -f2- | sed -e 's/-.*private.*$/-priv/' | sed '/-priv/!s/-.*//')
echo "ISO=$ISO" >> $GITHUB_ENV
- name: Logging
id: log
Expand All @@ -57,4 +57,4 @@ jobs:
to: "${{env.ISO}}"
type: "stream"
topic: "${{github.event.repository.name}} / ${{env.BRANCH}}"
content: "Changed files in last commit:\n\n${{steps.log.outputs.text}}"
content: "${{github.event.pusher.name}} [pushed](${{github.event.compare}}) to branch ${{env.BRANCH}}.\n\n##### - ${{github.event.commits[0].message}}\n---\n##### Changed files:\n\n${{steps.log.outputs.text}}"

0 comments on commit 08ed1c4

Please sign in to comment.