I am trying to trigger some actions based on label of pull request.
I am not sure how to retrieve the details of the label
Here is a simplified action to illustrate and I expect that all these will show me some info about the labels but all i got is “1” in the output.
What am I doing wrong here? Thanks!
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
pull_request:
types: [labeled]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "${{ gitea.event.label.name }}"
- run: echo "${{ gitea.event.label.id }}"
- run: echo "${{ gitea.event.label.description }}"
- run: echo "${{ gitea.event.label.node_id }}"
- run: echo "${{ gitea.event.label.color }}"
- run: echo "${{ gitea.event.label.url }}"
A little more info: I checked on Frequently Asked Questions of Gitea Actions | Gitea Documentation and it listed labeled as one of the actions that is supported and compatible with github. The same actions work on github. (but with the variables being github.xx instead of gitea.xx of course )