Skip to content

Commit

Permalink
chore: adrstatus, fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Aug 6, 2024
1 parent 5d99719 commit 55621b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy-adr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ jobs:
- name: Comment ADRs in PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_HEAD_REF: ${{github.head_ref}}
run: |
echo "# ADR Docs in this PR 📚:" > /tmp/new-adr
gh pr diff "$GH_HEAD_REF" --name-only | grep docs/adr | xargs cat >> /tmp/new-adr
gh pr comment "$GH_HEAD_REF" -F /tmp/new-adr --edit-last || gh pr comment "$GH_HEAD_REF" -F /tmp/new-adr
gh pr diff "${{ github.event.pull_request.number }}" --name-only | grep docs/adr | xargs cat >> /tmp/new-adr
gh pr comment "${{ github.event.pull_request.number }}" -F /tmp/new-adr --edit-last || gh pr comment "${{ github.event.pull_request.number }}" -F /tmp/new-adr
publish-develop:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 55621b4

Please sign in to comment.