permissions: {} on: release: types: [released] jobs: trigger-docs-release: name: Trigger Documentation Release runs-on: ubuntu-latest timeout-minutes: 2 steps: - name: Obtain token id: obtainToken uses: actions/create-github-app-token@v3 with: private-key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }} client-id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }} owner: homarr-labs repositories: | documentation permission-contents: write # required to dispatch repository workflow - 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 @- < token: ${{ steps.obtainToken.outputs.token }} branch: update-bug-report-template base: dev title: "chore: update bug report template" delete-branch: true body: | This PR automatically updates the bug report template of Homarr in the .github/ISSUE_TEMPLATE/bug_report.yml - name: Install GitHub CLI run: sudo apt-get install -y gh - name: Enable auto-merge env: GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }} run: | gh pr merge ${{steps.create-pull-request.outputs.pull-request-number}} --auto --squash