diff options
| author | seth <[email protected]> | 2024-01-07 20:42:07 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-07 21:08:57 -0500 |
| commit | 90ad9d652f009a53b57115c924446baf6f1d3b7b (patch) | |
| tree | 6df1841fc082fefd37846391a0d9964cb482b401 /.github/workflows/check-commit.yml | |
| parent | 4578d68f3106f95607e9d3e713936ba2a565322b (diff) | |
feat: use nix to build images
this should result in smaller images, as well as safer updates
Diffstat (limited to '.github/workflows/check-commit.yml')
| -rw-r--r-- | .github/workflows/check-commit.yml | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/.github/workflows/check-commit.yml b/.github/workflows/check-commit.yml deleted file mode 100644 index 87d00a0..0000000 --- a/.github/workflows/check-commit.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Get latest commit -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - get-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/[email protected] - - name: Fetch packwiz commit - run: | - curl -sL https://api.github.com/repos/packwiz/packwiz/commits | jq .[0].sha > current_commit.txt - - name: Check for new commit - id: git-check - run: | - echo ::set-output name=modified::$([ -z "`git status --porcelain`" ] && echo "false" || echo "true") - - name: Update cached commit - if: steps.git-check.outputs.modified == 'true' - run: | - git config --global user.name 'github-actions' - git config --global user.email '[email protected]' - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} - - git add current_commit.txt - - git commit -m "chore: update packwiz commit" - git tag -a "$(date '+%Y%m%d')" -m "scheduled release" - - git push --follow-tags |
