Create update-7zip.yml [skip ci]

This commit is contained in:
chase 2023-01-12 21:19:40 -06:00 committed by GitHub
parent d486b6270f
commit 9f05d677eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/update-7zip.yml vendored Normal file
View File

@ -0,0 +1,22 @@
---
name: "📝 Update 7-Zip"
on:
schedule:
- cron: "0 2 16 * *"
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
jobs:
update7zip:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- run: echo "::set-env name=LATEST_7ZIP::$(curl -s https://raw.githubusercontent.com/chxseh/update-7zip-inside-repos/main/latest/latest.txt | head -n 1)"
- run: curl https://raw.githubusercontent.com/chxseh/update-7zip-inside-repos/main/update-repos/update.sh | bash
- uses: peter-evans/create-pull-request@v4
with:
commit-message: 📝 Update 7-Zip
title: Update 7-Zip to ${{ env.LATEST_7ZIP }}
body: Update 7-Zip to ${{ env.LATEST_7ZIP }}
branch: update-7zip-${{ env.LATEST_7ZIP }}
author: "github-actions <41898282+github-actions[bot]@users.noreply.github.com>"
delete-branch: true