Update 115 #406
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: "Update 115" | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
workflow_dispatch: | |
jobs: | |
check-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check Update For 115 | |
id: update-app | |
run: ./.github/scripts/check-update-115.sh | |
shell: bash | |
- name: Set up Docker Buildx | |
if: ${{ steps.update-app.outputs.version != '' }} | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
if: ${{ steps.update-app.outputs.version != '' }} | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Push 115 Image | |
if: ${{ steps.update-app.outputs.version != '' }} | |
id: docker-build | |
uses: docker/build-push-action@v5 | |
with: | |
context: "./115" | |
push: true | |
tags: ${{ format('{0}:{1}-auto', 'stormyyd/115', steps.update-app.outputs.version) }} | |
- name: Render template | |
if: ${{ steps.update-app.outputs.version != '' }} | |
id: template | |
uses: chuhlomin/render-template@v1.8 | |
with: | |
template: .github/auto-update-pull-request-template.md | |
vars: | | |
appname: 115 | |
version: ${{ steps.update-app.outputs.version }} | |
imagename: "stormyyd/115" | |
- name: Create Pull Request | |
if: ${{ steps.update-app.outputs.version != '' }} | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: ${{ format('Upgrade 115 to version {0}', steps.update-app.outputs.version) }} | |
title: ${{ format('[BOT] Upgrade 115 to version {0}', steps.update-app.outputs.version) }} | |
body: ${{ steps.template.outputs.result }} | |
delete-branch: true | |
branch: auto-update/115 | |
assignees: stormyyd | |
reviewers: stormyyd | |
labels: automated |