trying to get the auto reply with branch documentation to work #2
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: Add Documentation Link to PR | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
types: [opened] | |
jobs: | |
add-doc-link: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Debugging information | |
run: | | |
echo "github.ref:" ${{github.ref}} | |
echo "github.event_name:" ${{github.event_name}} | |
echo "github.head_ref:" ${{github.head_ref}} | |
echo "github.base_ref:" ${{github.base_ref}} | |
- name: Add Documentation Link | |
id: comment | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
issue-number: ${{ github.event.number }} | |
body: | | |
Here is the documentation for this branch: [Documentation](https://ncar.github.io/micm/branch/${{ github.head_ref }}) | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |