Skip to content

Commit

Permalink
change branch name to variable and save release-diff in reports folder
Browse files Browse the repository at this point in the history
  • Loading branch information
anitacaron committed Jan 3, 2024
1 parent b1e4467 commit 4e4b3ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/_dynamic_files.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -915,11 +915,11 @@ jobs:
name: Post release diff

on:
# Triggers the workflow on pull request events for the master branch
# Triggers the workflow on pull request events for the {{ project.git_main_branch }} branch
pull_request:
branches: [ master ]
branches: [ {{ project.git_main_branch }} ]
paths:
- 'src/ontology/diffs/release-diff.md'
- 'src/ontology/reports/release-diff.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -933,7 +933,7 @@ jobs:
- name: Prepare release comment
env:
GITHUB_SHA: {% raw %}${{ github.sha }}{% endraw %}
run: "echo \"[Here's a diff of how this release impacts {{ project.id }}.owl](https://github.com/obophenotype/{{ project.repo }}/blob/${% raw %}${{ env.GITHUB_SHA }}{% endraw %}/src/ontology/diffs/release-diff.md)\" >comment.md"
run: "echo \"[Here's a diff of how this release impacts {{ project.id }}.owl](https://github.com/obophenotype/{{ project.repo }}/blob/${% raw %}${{ env.GITHUB_SHA }}{% endraw %}/src/ontology/reports/release-diff.md)\" >comment.md"
- name: Post reasoned comment
env:
GITHUB_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
Expand Down

0 comments on commit 4e4b3ba

Please sign in to comment.