Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,33 @@ jobs:
echo "::warning::Could not merge or enable auto-merge for $PR_URL — merge it manually."
fi

# Ask the docs repo to write release notes for this version, the same
# repository_dispatch that backend and frontend send through release-cycle.
notify-docs:
needs: upload
if: ${{ !github.event.release.prerelease }}
runs-on: ubuntu-latest
continue-on-error: true
permissions: {}
steps:
- name: Create GitHub App token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ vars.DUALENTRY_CI_APP_CLIENT_ID }}
private-key: ${{ secrets.DUALENTRY_CI_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: docs
permission-contents: write

- name: Send release to dualentry/docs
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
set -euo pipefail
gh api --method POST repos/dualentry/docs/dispatches \
-f event_type=release \
-f 'client_payload[repo]=dualentry-cli' \
-f "client_payload[release_tag]=$RELEASE_TAG"
echo "Sent release $RELEASE_TAG to dualentry/docs"
Loading