| 30 | 30 | GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 31 | 31 | run: | |
| 32 | 32 | for ISSUE in $(echo $issues | jq -r '.[]'); do |
| 33 | | - echo "Updating issue #$ISSUE" |
| 34 | 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 | 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 | 39 | fi |
| 40 | + echo "Added label '$LABEL' to issue #$ISSUE" |
| 39 | 41 | done |