| 29 | env: | 29 | env: |
| 30 | GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} | 30 | GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 31 | run: | | 31 | run: | |
| 32 | for ISSUE in $(echo $issues | jq -r '.[]'); do | 32 | for ISSUE in $(echo $issues | jq -r '.[]'); do |
| 33 | echo "Updating issue #$ISSUE" | | |
| 34 | if [ "${{ github.ref }}" == "refs/heads/staging" ]; then | 33 | if [ "${{ github.ref }}" == "refs/heads/staging" ]; then |
| 35 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)" | 34 | LABEL="✅ Done (staging)" |
| | 35 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" |
| 36 | elif [ "${{ github.ref }}" == "refs/heads/release" ]; then | 36 | elif [ "${{ github.ref }}" == "refs/heads/release" ]; then |
| 37 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done" | 37 | LABEL="✅ Done" |
| | 38 | gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL" |
| 38 | fi | 39 | fi |
| 39 | done | 40 | echo "Added label '$LABEL' to issue #$ISSUE" |
| | 41 | done |