Commit message is not printing
alphastorm opened this issue · 2 comments
alphastorm commented
I'm using the following YAML config (which I copied from #14):
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: send custom message with args
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
args: |
😍 A pull request has been merged on GitHub!
${{ github.actor }}: ${{ github.event.head_commit.message }}
However, the commit message isn't printing properly. Any idea what I'm doing wrong? Thanks for your help!
hkpanchani commented
It does gets printed..
Check my workflow here => https://github.com/hkpanchani/pipelines/blob/master/telegramNotification.yml
appleboy commented
See the commit 6ecbcc4
- name: send message useing with
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
The ${{ github.event_name }} event triggered second step.
show the github varable ref: ${{ github.ref }}
show the github varable commit: ${{ github.sha }}
show the github varable ref: {{ commit.ref }}
show the github varable commit: {{ commit.sha }}
Commit Message: ${{ github.event.head_commit.message }}