Refresh imports #93
This file contains 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: Refresh imports | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
imports: | |
runs-on: ubuntu-latest | |
container: obolibrary/odkfull:v1.5 | |
steps: | |
# Checks-out current branch | |
- name: Checkout main branch | |
uses: actions/checkout@v2 | |
- name: work around permission issue | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Refreshing imports | |
run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx10G' GITHUB_ACTION=true refresh-imports | |
- name: Refreshing components | |
run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx10G' GITHUB_ACTION=true ../patterns/definitions.owl | |
- name: Remove patternized classes | |
run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx10G' GITHUB_ACTION=true remove_patternised_classes | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
commit-message: Update imports and components | |
title: 'Update all imports and components' | |
body: | | |
Updates all imports and components. | |
assignees: matentzn |