2023-04-14 03:51:51 +08:00
|
|
|
name: imaginary-update
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '00 12 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run_update:
|
|
|
|
name: update to latest imaginary commit on master branch
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 20:29:01 +08:00
|
|
|
- uses: actions/checkout@v4
|
2023-04-14 03:51:51 +08:00
|
|
|
- name: Run imaginary-update
|
|
|
|
run: |
|
|
|
|
# Imaginary
|
|
|
|
imaginary_version="$(
|
|
|
|
git ls-remote https://github.com/h2non/imaginary master \
|
|
|
|
| cut -f1 \
|
|
|
|
| tail -1
|
|
|
|
)"
|
2024-06-21 19:27:36 +08:00
|
|
|
sed -i "s|^ENV IMAGINARY_HASH.*$|ENV IMAGINARY_HASH=$imaginary_version|" ./Containers/imaginary/Dockerfile
|
2023-04-14 03:51:51 +08:00
|
|
|
|
|
|
|
- name: Create Pull Request
|
2024-09-03 21:07:52 +08:00
|
|
|
uses: peter-evans/create-pull-request@v7
|
2023-04-14 03:51:51 +08:00
|
|
|
with:
|
|
|
|
commit-message: imaginary-update automated change
|
|
|
|
signoff: true
|
|
|
|
title: Imaginary update
|
|
|
|
body: Automated Imaginary container update
|
2023-04-27 21:16:58 +08:00
|
|
|
labels: dependencies, 3. to review
|
2023-04-14 03:51:51 +08:00
|
|
|
milestone: next
|
|
|
|
branch: imaginary-container-update
|