Skip to content

Commit

Permalink
Fix update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zoetrope committed Jul 25, 2023
1 parent 516609a commit 3aeb73a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: update
on:
schedule:
- cron: '0 22 * * 0-4'
pull_request:
jobs:
update:
name: Update images
Expand All @@ -21,6 +22,7 @@ jobs:
with:
version: v0.9.1
- name: Check minimal image updates
shell: bash -xe {0}
run: |
if [ "${{ matrix.ubuntu-version }}" = "20.04" ]; then
codename=focal
Expand Down Expand Up @@ -48,6 +50,7 @@ jobs:
echo "- Minimal image updated: $LATEST_TAG" >> ./BODY
fi
- name: Check package updates
shell: bash -xe {0}
run: |
TAG_MINIMAL=$(cat ./TAG_MINIMAL)
TAG=$(cat ./TAG)
Expand All @@ -69,6 +72,7 @@ jobs:
done
- name: Create PR
if: env.NEED_UPDATE == '1'
shell: bash -xe {0}
run: |
TODAY=$(date "+%Y%m%d")
sed -i -e "s/${{ matrix.ubuntu-version }}\.[0-9]\{8\}/${{ matrix.ubuntu-version }}\.$TODAY/g" ./TAG
Expand Down

0 comments on commit 3aeb73a

Please sign in to comment.