GITHUB_REF or github.ref are not injected

it suddenly those variables did not display what they were supposed to.
anyone sees same?


Hi @legshort,

Please use below format instead.

      - run: |
          echo $GITHUB_REF
          echo ${{ github.ref }}

My workflow here:


thanks for your answer with a great example!!, I think I have this problem cuz 3rd party app called SlashDeploy which calls deployment API automatically from Slack.

I checked a whole github context and surprisingly ref is empty so I guess the sender misses out or something out of sudden.