Skip to content

2024-09-03 Release

2024-09-03 Release #7

name: Post release diff
on:
# Triggers the workflow on pull request events for the master branch
pull_request:
branches: [ master ]
paths:
- 'src/ontology/diffs/uberon-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 diff comment
env:
GITHUB_SHA: ${{ github.sha }}
run: "echo \"[Here's a diff of how this release impacts uberon-base.owl](https://github.com/obophenotype/uberon/blob/${{ env.GITHUB_SHA }}/src/ontology/diffs/uberon-diff.md)\" >comment.md"
- name: Post comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: NejcZdovc/comment-pr@v2
with:
github_token: ${{ env.GITHUB_TOKEN }}
file: "../../comment.md"
identifier: "UBERON-DIFF"