diff --git a/.gitea/workflows/comment-diff.yml b/.gitea/workflows/comment-diff.yml deleted file mode 100644 index a2b0c6e..0000000 --- a/.gitea/workflows/comment-diff.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Weekly Flake Update - -on: - pull_request: - types: - - opened - - synchronize - - edited - - reopened - -permissions: - contents: write - -jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." - - name: Check for string parsing - run: | - var=$(echo "${{ github.ref }}" | cut -d / -f 3) - echo "$var" - diff --git a/.gitea/workflows/hydra-callback.yml b/.gitea/workflows/hydra-callback.yml new file mode 100644 index 0000000..6b5f761 --- /dev/null +++ b/.gitea/workflows/hydra-callback.yml @@ -0,0 +1,30 @@ +name: Weekly Flake Update + +on: + pull_request: + types: + - opened + +permissions: + contents: write + +jobs: + update_and_check_flake: + runs-on: ubuntu-latest + env: + NIXPKGS_ALLOW_UNFREE: 1 + steps: + - name: Install sudo + run: | + apt-get update + apt-get install -y sudo + - name: Set up Nix + uses: https://github.com/cachix/install-nix-action@v31 + with: + github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }} + - name: Check for string parsing + run: | + var=$(echo "${{ github.ref }}" | cut -d / -f 3) + echo "$var" + - name: run hydra wait + run: nix run nixpkgs#hydra-cli -- -H https://hydra.dynamicdiscord.de jobset-wait malobeo2 "$var" \ No newline at end of file