Check for OpenAPI files from different Geoportals #162
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: Check for OpenAPI files from different Geoportals | |
on: | |
schedule: | |
- cron: "0 0 * * 1,4" # At 00:00 on Monday and Thursday. | |
workflow_dispatch: | |
jobs: | |
search-for-openapis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: "1.18.3" | |
- uses: actions/checkout@v3 | |
- run: go run . -path=../geoportal_he.json -geoportalURL=https://www.geoportal.hessen.de --save=true | |
working-directory: api-finder | |
- run: go run . -path=../geoportal_sl.json -geoportalURL=https://geoportal.saarland.de --save=true | |
working-directory: api-finder | |
- run: go run . -path=../geoportal_rlp.json -geoportalURL=https://www.geoportal.rlp.de --save=true | |
working-directory: api-finder | |
- name: Create Pull Request if needed | |
id: create-pull-request | |
uses: peter-evans/create-pull-request@v4.2.2 | |
with: | |
commit-message: "update geoportal lists" | |
title: "[bot] Update Geoportal lists" | |
delete-branch: true |