Skip to content

docstrings_common_updated #2

docstrings_common_updated

docstrings_common_updated #2

name: Get updated docstrings_common.json from opm-common
on:
repository_dispatch:
types: [docstrings_common_updated]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Replace docstrings_common.json file with newer version from opm-common
run: |
curl -L -o python/docstrings_common.json https://raw.githubusercontent.com/lisajulia/opm-common/master/python/docstrings_common.json
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add python/docstrings_common.json
git commit -m "Update file from docstrings_common.json"
git push origin HEAD:master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}