mirror of
https://github.com/immich-app/immich.git
synced 2026-05-13 12:02:17 +03:00
chore: tee GITHUB_OUTPUT for debugging (#27378)
This commit is contained in:
4
.github/workflows/auto-close.yml
vendored
4
.github/workflows/auto-close.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
|||||||
while IFS= read -r header; do
|
while IFS= read -r header; do
|
||||||
printf '%s\n' "$BODY" | grep -qF "$header" || OK=false
|
printf '%s\n' "$BODY" | grep -qF "$header" || OK=false
|
||||||
done < <(sed '/<!--/,/-->/d' .github/pull_request_template.md | grep "^## ")
|
done < <(sed '/<!--/,/-->/d' .github/pull_request_template.md | grep "^## ")
|
||||||
echo "uses_template=$OK" >> "$GITHUB_OUTPUT"
|
echo "uses_template=$OK" | tee --append "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
close_template:
|
close_template:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -128,7 +128,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
REMAINING=$(gh pr view "$PR_NUMBER" --repo "${{ github.repository }}" --json labels \
|
REMAINING=$(gh pr view "$PR_NUMBER" --repo "${{ github.repository }}" --json labels \
|
||||||
--jq '[.labels[].name | select(startswith("auto-closed:"))] | length')
|
--jq '[.labels[].name | select(startswith("auto-closed:"))] | length')
|
||||||
echo "remaining=$REMAINING" >> "$GITHUB_OUTPUT"
|
echo "remaining=$REMAINING" | tee --append "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Reopen PR
|
- name: Reopen PR
|
||||||
if: ${{ steps.check_labels.outputs.remaining == '0' }}
|
if: ${{ steps.check_labels.outputs.remaining == '0' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user