docstrings_common_updated #2
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: 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 }} |