name: helium update on: schedule: - cron: "0 6 * * *" workflow_dispatch: jobs: update-helium: runs-on: ubuntu-latest 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: create branch and commit if: steps.update.outputs.updated == 'true' shell: bash run: | set -euo pipefail version="${{ steps.update.outputs.version }}" BRANCH="bot/helium-${version}" \ FILE="modules/pkgs/helium.nix" \ COMMIT_MESSAGE="update helium to ${version}" \ bash .gitea/scripts/commit-update.sh - name: open pull request if: steps.update.outputs.updated == 'true' env: GITEA_TOKEN: ${{ secrets.tea_token || secrets.TEA_TOKEN }} shell: bash run: | set -euo pipefail version="${{ steps.update.outputs.version }}" previous_version="${{ steps.update.outputs.previous_version }}" release_url="${{ steps.update.outputs.release_url }}" pr_body=$(cat <