Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH Action to post release diff on release PR #3278

Merged
merged 4 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/post-release-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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"
8 changes: 4 additions & 4 deletions src/ontology/diffs/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
OBO=http://purl.obolibrary.org/obo
ONT = uberon
SRC = ../../../$(ONT).obo
OWLSRC = ../../../$(ONT).owl
LAST = $(OBO)/$(ONT).obo
OWLLAST = $(OBO)/$(ONT).owl
SRC = ../../../$(ONT)-base.obo
OWLSRC = ../../../$(ONT)-base.owl
LAST = $(OBO)/$(ONT)/$(ONT)-base.obo
OWLLAST = $(OBO)/$(ONT)/$(ONT)-base.owl

#all: $(ONT)-obo-diff.html $(ONT)-def-diff.html $(ONT)-lastbuild.obo $(ONT)-combined-diff.txt $(ONT)-diff.md
all: $(ONT)-diff.md
Expand Down
Loading