Create update-7zip.yml [skip ci]
This commit is contained in:
parent
d486b6270f
commit
9f05d677eb
22
.github/workflows/update-7zip.yml
vendored
Normal file
22
.github/workflows/update-7zip.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user