generate-base-python #1
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: generate-base-python | |
on: | |
schedule: | |
# run at noon on sundays to prepare for monday | |
# used https://crontab.guru/ to generate | |
- cron: '0 12 * * SUN' | |
jobs: | |
generate: #################################################################### | |
runs-on: ubuntu-latest | |
env: | |
# See docker/base-python.docker.gen | |
BASE_PYTHON_REPO: ${{ secrets.BASE_PYTHON_REPO }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Deps | |
uses: ./.github/actions/setup-deps | |
- name: "Git Login" | |
run: | | |
if [[ -n '${{ secrets.GHA_SSH_KEY }}' ]]; then | |
install -m700 -d ~/.ssh | |
install -m600 /dev/stdin ~/.ssh/id_rsa <<<'${{ secrets.GHA_SSH_KEY }}' | |
fi | |
- name: "Docker Login" | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ (!startsWith(secrets.RELEASE_REGISTRY, 'docker.io/')) && secrets.RELEASE_REGISTRY || null }} | |
username: ${{ secrets.GH_DOCKER_RELEASE_USERNAME }} | |
password: ${{ secrets.GH_DOCKER_RELEASE_TOKEN }} | |
- name: "'make generate'" | |
shell: bash | |
run: | | |
make generate | |
- uses: ./.github/actions/git-dirty-check | |
name: "Check Git not dirty from 'make generate'" | |
- name: "'make generate' (again!)" | |
shell: bash | |
run: | | |
make generate | |
- uses: ./.github/actions/git-dirty-check | |
name: "Check Git not dirty from 'make generate' (again!)" | |
- uses: ./.github/actions/after-job | |
if: always() |