arc-dsm/.github/workflows/update.yml
AuxXxilium c41835eb4f dsm: update job
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
2023-06-21 16:39:34 +02:00

44 lines
1.0 KiB
YAML

#
# 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
sudo apt install -y jq libelf-dev qemu-utils
sudo snap install yq
- name: Update
run: |
sudo ./update.sh
- name: Check and Push
if: inputs.push == true
run: |
git add .
git commit -m "arc: update $(date +%Y-%m-%d" "%H:%M:%S)"
git push -f