diff options
| author | seth <[email protected]> | 2023-05-01 21:07:02 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-01 21:07:02 -0400 |
| commit | 929505643b28d6fba5547ae04c839bb6ca4ca351 (patch) | |
| tree | 2769e04f2eb690b55189d780e1cca73628caaf3e /.github | |
| parent | f0e119fd32a8f92eb9e8591a0f2caec827f5b32a (diff) | |
actions: cleanup update workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-mods.yml | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/.github/workflows/update-mods.yml b/.github/workflows/update-mods.yml index 79f6b71..9fbfea5 100644 --- a/.github/workflows/update-mods.yml +++ b/.github/workflows/update-mods.yml @@ -1,8 +1,10 @@ name: Update mods + on: workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" + jobs: update-mods: runs-on: ubuntu-latest @@ -12,20 +14,14 @@ jobs: curl -fsSLo ~/packwiz.zip https://nightly.link/packwiz/packwiz/workflows/go/main/Linux%2064-bit%20x86.zip unzip -d ~ ~/packwiz.zip chmod 755 ~/packwiz + - uses: actions/[email protected] + - name: update mods run: | echo "y" | ~/packwiz update --all - - name: check for changes - id: git-check - run: | - echo ::set-output name=modified::$(if git status --porcelain | grep -E 'pack.toml|index.toml|mods\/' > /dev/null; then echo "true"; else echo "false"; fi) - - name: commit updates - if: steps.git-check.outputs.modified == 'true' - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add mods/ index.toml pack.toml - git commit -m "chore: update mods" - git push + - uses: EndBug/add-and-commit@v9 + with: + default_author: github_actions + message: "chore: update mods" |
