0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-25 14:54:38 +03:00
yandex-music-linux/.github/workflows/update_packages.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

2024-02-02 18:45:51 +03:00
name: Update packages
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on: workflow_dispatch
jobs:
update_packages:
strategy:
matrix:
container:
- archlinux:latest
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
steps:
- name: Pacman database update
run: pacman -Syy --noconfirm
- name: Fix Git
run: pacman -S --noconfirm git
- name: Checkout
uses: actions/checkout@v4
- name: Check and update current packages
run: sh .github/workflows/update_packages.sh
- name: Save tag name
run: echo "TAG_NAME=v$(jq -r .version ./version_info.json)" >> $GITHUB_ENV
- name: Save version name (Beta x.x.x)
run: echo "VERSION_NAME=Beta $(jq -r .version ./version_info.json)" >> $GITHUB_ENV
- name: Commit and push changes
uses: EndBug/add-and-commit@v9.1.4
with:
message: "Update packages to ${{ env.VERSION_NAME }}"
add: "."
author_name: "GitHub Actions"
author_email: "loraner123@gmail.com"
tag: ${{ env.TAG_NAME }}
tag_push: '--force'