Skip to content

Update GRIB2ParameterLocalTable.csv (#72) #63

Update GRIB2ParameterLocalTable.csv (#72)

Update GRIB2ParameterLocalTable.csv (#72) #63

name: commit-to-registry
on:
# Trigger the workflow on push
# but only for the master branch
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v1
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install rdflib
pip install requests
- name: nofail tests
run: |
nofails=1 outfile=/tmp/reg_test_results python3 -m check_urls
- name: commit and upload to Register
env:
UNAME: ${{ secrets.registeruname }}
TPASS: ${{ secrets.registertpass }}
run: |
git status
git checkout master
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "${{ github.actor }}"
git add ./\*.ttl
if [ -z "$(git status --porcelain)" ];
then echo 'nothing to commit'
else
git commit -am 'Github Action Commit'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git push
fi
python3 -m uploadChanges "$UNAME" "$TPASS" /tmp/reg_test_results
- name: Test
run: |
nofails=1 python3 -m check_urls