appleboy/telegram-action

Getting error when trying send variable

baimurzin opened this issue · 1 comments

Trying to send ${{commit.ref }} but getting an error, no such variable.
Unrecognized named-value: 'commit'
Is it possible to send commit message via telegram?

    - name: send message useing with
      uses: appleboy/telegram-action@master
      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 }}

- name: send message useing with
uses: appleboy/telegram-action@master
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 }}