permissions: {} on: release: types: [published] jobs: trigger-docs-release: name: Trigger Documentation Release runs-on: ubuntu-latest steps: - name: Obtain token id: obtainToken uses: tibdex/github-app-token@v2 with: private_key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }} app_id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }} installation_retrieval_mode: repository installation_retrieval_payload: homarr-labs/documentation - name: Trigger documentation release env: GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }} SOURCE_TAG: ${{ github.event.release.tag_name }} run: | curl -X POST \ -H "Authorization: token $GITHUB_TOKEN" \ -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/homarr-labs/documentation/dispatches \ -d @- <