release files 20260317 #49
This file contains hidden or 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: Post release diff | |
| on: | |
| # Triggers the workflow on pull request events for the master branch | |
| pull_request: | |
| branches: [ master ] | |
| paths: | |
| - 'src/ontology/reports/cl-base-diff.md' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| post_diff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Prepare release comment | |
| env: | |
| GITHUB_SHA: ${{ github.sha }} | |
| run: "echo \"[Here's a diff of how this release impacts cl-base.owl](https://github.com/obophenotype/cell-ontology/blob/${{ env.GITHUB_SHA }}/src/ontology/reports/cl-base-diff.md)\" >comment.md" | |
| - name: Post reasoned comment | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| uses: NejcZdovc/comment-pr@v2 | |
| with: | |
| github_token: ${{ env.GITHUB_TOKEN }} | |
| file: "../../comment.md" | |
| identifier: "CL-DIFF" |