GODRIVER-2923 Fix remote handling #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Comment | |
on: | |
pull_request: | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/setup-go@v4 | |
- name: Find Comment | |
uses: peter-evans/find-comment@v2 | |
id: fc | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
body-includes: "## API Change Report" | |
- name: Create the comment body | |
run: | | |
set -eux | |
env | |
git clone https://github.com/$GITHUB_REPOSITORY | |
cd mongo-go-driver | |
git fetch origin $GITHUB_BASE_REF | |
git fetch origin $GITHUB_HEAD_REF | |
git checkout $GITHUB_HEAD_REF | |
make api-report | |
cat api-report.md | |
- name: Create or update comment | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
comment-id: ${{ steps.fc.outputs.comment-id }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body-path: 'mongo-go-driver/api-report.md' | |
edit-mode: replace |