Files
thomas-likes-nix-pkgs/.gitea/workflows/helium-update.yml
T
2026-04-13 16:15:53 +01:00

45 lines
1.3 KiB
YAML

name: helium update
on:
schedule:
- cron: "0 3 * * *" # UTC
workflow_dispatch:
jobs:
update-helium:
runs-on: ubuntu-latest
concurrency:
group: helium-update
cancel-in-progress: false
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install nix
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: check latest helium release and update file
id: update
env:
FILE: modules/pkgs/helium.nix
LATEST_RELEASE_URL: https://github.com/imputnet/helium-linux/releases/latest
DOWNLOAD_URL_TEMPLATE: https://github.com/imputnet/helium-linux/releases/download/{version}/helium-{version}-x86_64.AppImage
RELEASE_TAG_TEMPLATE: '{version}'
shell: bash
run: bash .gitea/scripts/update-appimage-nix.sh
- name: commit and push to main
if: steps.update.outputs.updated == 'true'
shell: bash
run: |
set -euo pipefail
version="${{ steps.update.outputs.version }}"
FILE="modules/pkgs/helium.nix" \
COMMIT_MESSAGE="update helium to ${version}" \
bash .gitea/scripts/commit-update-main.sh