Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/update-cmor-tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,17 @@ jobs:
cd tables
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT

- name: Get commit message
id: commit_message
run: echo "msg=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT

- name: Commit and push
if: steps.verify_diff.outputs.changed == 'true'
run: |
cd tables
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
(pre-commit run --all-files) || true
git commit Tables/*.json -m "update cmor tables from data request repository"
git commit Tables/*.json -m "cmor table update: ${{ steps.commit_message.outputs.msg }}"
git status
git push