Skip to content

Merge pull request #27 from opensafely-core/madwort/track-ubuntu-sha #4

Merge pull request #27 from opensafely-core/madwort/track-ubuntu-sha

Merge pull request #27 from opensafely-core/madwort/track-ubuntu-sha #4

name: Update SHA of latest ubuntu images
# This is to workaround the 3mo timeout for GHA scheduled actions on repos with
# no new commits, by automatically creating new commits.
on:
schedule:
# check for a new ubuntu image every week at 04:17am on mondays
- cron: "17 04 * * 1"
# let us manually trigger a build
workflow_dispatch:
env:
BASE_IMAGE_NAME: base-docker
ACTION_IMAGE_NAME: base-action
jobs:
jobs:

Check failure on line 14 in .github/workflows/update-ubuntu-sha.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-ubuntu-sha.yaml

Invalid workflow file

You have an error in your yaml syntax on line 14
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- uses: extractions/setup-just@69d82fb0233557aec017ef13706851d0694e0f1d
- name: update SHAs
run: just update-docker-shas
- name: Commit file
run: |
git status
git add *.sha
if git diff-index --quiet HEAD; then
exit
fi
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update base image SHA files"
git push origin