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 55621b4 commit 0c617bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-adr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

permissions:
contents: write
pull-requests: write

jobs:
publish-pr:
Expand All @@ -24,8 +25,8 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "# ADR Docs in this PR 📚:" > /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
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 0c617bd

Please sign in to comment.