mirror of
https://github.com/AuxXxilium/arc-dsm.git
synced 2024-12-22 19:07:34 +07:00
3fc73c37df
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
74 lines
1.6 KiB
YAML
74 lines
1.6 KiB
YAML
#
|
|
# Copyright (C) 2023 AuxXxilium <https://github.com/AuxXxilium>
|
|
#
|
|
# This is free software, licensed under the MIT License.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
name: Update
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
push:
|
|
description: 'push'
|
|
default: true
|
|
type: boolean
|
|
cleanfiles:
|
|
description: 'clean files'
|
|
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
|
|
sudo apt install -y \
|
|
jq \
|
|
build-essential \
|
|
libtool \
|
|
pkgconf \
|
|
libzstd-dev \
|
|
liblzma-dev \
|
|
libssl-dev \
|
|
gawk \
|
|
cpio \
|
|
gettext \
|
|
libelf-dev \
|
|
qemu-utils \
|
|
busybox \
|
|
dialog \
|
|
curl \
|
|
sed \
|
|
zip \
|
|
unzip \
|
|
python3
|
|
sudo snap install yq
|
|
|
|
- name: Clean Files
|
|
if: inputs.cleanfiles == true
|
|
run: |
|
|
sudo rm -rf ./files
|
|
sudo rm -rf ./dsm
|
|
|
|
- name: Update
|
|
run: |
|
|
sudo ./update.sh
|
|
|
|
- name: Check and Push
|
|
if: inputs.push == true
|
|
run: |
|
|
git fetch
|
|
git add .
|
|
git commit -m "dsm: update $(date +%Y-%m-%d" "%H:%M:%S)"
|
|
git push -f |