chore(dns-monitor): pass step output through env, not bash interpolation

Routing `steps.dig.outputs.line` through `env:` matches the pattern
used by `apt-repo-heartbeat.yml` and avoids interpolating arbitrary
text directly into the shell command.

Co-Authored-By: Claude <claude@anthropic.com>
This commit is contained in:
aaddrick
2026-04-25 09:36:33 -04:00
parent 2b9bb240a8
commit e157420dc0

View File

@@ -32,9 +32,11 @@ jobs:
echo "line=$line" >> "$GITHUB_OUTPUT"
- name: Append to issue body
env:
LINE: ${{ steps.dig.outputs.line }}
run: |
body=$(gh issue view "$ISSUE" --repo "$GITHUB_REPOSITORY" --json body -q .body)
new_body="${body}"$'\n'"${{ steps.dig.outputs.line }}"
new_body="${body}"$'\n'"${LINE}"
gh issue edit "$ISSUE" --repo "$GITHUB_REPOSITORY" --body "$new_body"
- name: Disable workflow on resolution