diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ded73112..141d4909 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -77,6 +77,7 @@ jobs: fi echo "GIT_BRANCH=$GIT_BRANCH" >> $GITHUB_ENV echo "DEST_DIR=$DEST_DIR" >> $GITHUB_ENV + echo "REPO_NAME=${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" >> $GITHUB_ENV - name: Publish docs uses: JamesIves/github-pages-deploy-action@v4 with: @@ -85,4 +86,12 @@ jobs: ${{ env.CLEAN_EXCLUDE }} single-commit: true target-folder: ${{ env.DEST_DIR }} - folder: ${{ env.OUTPUT }}/linux/amd64 \ No newline at end of file + folder: ${{ env.OUTPUT }}/linux/amd64 + - name: Comment PR + uses: thollander/actions-comment-pull-request@v2 + if: github.event_name == 'pull_request' + with: + comment_tag: docs + mode: upsert + message: | + Documentation can be viewed [here](https://${{ github.repository_owner }}.github.io/${{ env.REPO_NAME }}${{ env.DEST_DIR }}). \ No newline at end of file diff --git a/.github/workflows/dogfood.yml b/.github/workflows/dogfood.yml index fe8a5ce3..5ef62775 100644 --- a/.github/workflows/dogfood.yml +++ b/.github/workflows/dogfood.yml @@ -2,11 +2,14 @@ name: Dogfood on: push: + branches: [main] + pull_request: permissions: id-token: write contents: write packages: write + pull-requests: write jobs: ci: