Improve logging and workflow names

This commit is contained in:
Wolfsblvt
2025-03-13 22:28:32 +01:00
parent aad4b449ee
commit 25792b53f2
3 changed files with 9 additions and 7 deletions

View File

@@ -29,11 +29,13 @@ jobs:
env:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
run: |
for ISSUE in $(echo $issues | jq -r '.[]'); do
echo "Updating issue #$ISSUE"
for ISSUE in $(echo $issues | jq -r '.[]'); do
if [ "${{ github.ref }}" == "refs/heads/staging" ]; then
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)"
LABEL="✅ Done (staging)"
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL"
elif [ "${{ github.ref }}" == "refs/heads/release" ]; then
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done"
LABEL="✅ Done"
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "$LABEL"
fi
done
echo "Added label '$LABEL' to issue #$ISSUE"
done

View File

@@ -177,6 +177,6 @@ jobs:
GH_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
run: |
for ISSUE in $(echo $final_issues | jq -r '.[]'); do
echo "Updating issue #$ISSUE"
gh issue edit $ISSUE -R ${{ github.repository }} --add-label "✅ Done (staging)"
echo "Added label '✅ Done (staging)' to issue #$ISSUE"
done

View File

@@ -1,4 +1,4 @@
name: 🎯 Push Handler
name: 🎯 Check Merge Conflicts
on:
# So that PRs touching the same files as the push are updated