From 4f98ff1309e8e93c7a48aabfe1898726371d254a Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Thu, 21 Nov 2024 17:13:49 +0200 Subject: [PATCH] Create a github action to automatically update registry data --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2559898 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Rebuild registry files + +on: + push: + branches: [ main ] + paths: + - 'mapping-server.yml' + - 'scripts/cli.py' + schedule: + - cron: "0 0 1 * *" + workflow_dispatch: + +jobs: + build_registry: + runs-on: ubuntu-latest + container: obolibrary/odkfull:v1.5.3 + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + - name: Rebuild all registry files + env: + DEFAULT_BRANCH: main + run: make all -B + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + commit-message: Update registry files + title: 'Update all registry files' + body: | + Updates all registry release files. + assignees: matentzn