update all my organisation/projects auto publishing script up to 2024 #27
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
on: [push] | |
jobs: | |
run_moban: | |
runs-on: ubuntu-latest | |
name: synchronize templates via moban | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
- name: check changes | |
run: | | |
pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible | |
make upstreaming | |
git status | |
git diff --exit-code | |
- name: Auto-commit | |
if: failure() | |
uses: docker://cdssnc/auto-commit-github-action | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: >- | |
This is an auto-commit, updating project meta data, | |
such as changelog.rst, contributors.rst |