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: |
|
|
|
|
git add .
|
|
|
|
git commit -m "arc: update $(date +%Y-%m-%d" "%H:%M:%S)"
|
|
|
|
git push -f
|