2023-06-21 21:38:13 +07:00
|
|
|
#
|
|
|
|
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium> and Ing <https://github.com/wjz304>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the MIT License.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
name: Update
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
push:
|
|
|
|
description: 'push'
|
|
|
|
default: false
|
|
|
|
type: boolean
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
dsm-files:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@main
|
|
|
|
|
|
|
|
- name: Initialization environment
|
|
|
|
run : |
|
|
|
|
git config --global user.email "info@auxxxilium.tech"
|
|
|
|
git config --global user.name "AuxXxilium"
|
|
|
|
sudo timedatectl set-timezone "Europe/Berlin"
|
|
|
|
|
|
|
|
sudo apt update
|
2023-06-21 21:39:34 +07:00
|
|
|
sudo apt install -y jq libelf-dev qemu-utils
|
2023-06-21 21:38:13 +07:00
|
|
|
sudo snap install yq
|
|
|
|
|
|
|
|
- name: Update
|
|
|
|
run: |
|
2023-06-21 21:39:34 +07:00
|
|
|
sudo ./update.sh
|
2023-06-21 21:38:13 +07:00
|
|
|
|
|
|
|
- name: Check and Push
|
2023-06-21 21:39:34 +07:00
|
|
|
if: inputs.push == true
|
2023-06-21 21:38:13 +07:00
|
|
|
run: |
|
2023-06-22 00:22:57 +07:00
|
|
|
git pull
|
2023-06-21 21:38:13 +07:00
|
|
|
git add .
|
2023-06-22 00:22:57 +07:00
|
|
|
git commit -m "dsm: update $(date +%Y-%m-%d" "%H:%M:%S)"
|
2023-06-21 21:38:13 +07:00
|
|
|
git push -f
|