Skip to content

trying to get the auto reply with branch documentation to work #2

trying to get the auto reply with branch documentation to work

trying to get the auto reply with branch documentation to work #2

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 }}