From 9f05d677eb0d7df350fc89cc210b875595fbb8b8 Mon Sep 17 00:00:00 2001 From: chase Date: Thu, 12 Jan 2023 21:19:40 -0600 Subject: [PATCH] Create update-7zip.yml [skip ci] --- .github/workflows/update-7zip.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/update-7zip.yml diff --git a/.github/workflows/update-7zip.yml b/.github/workflows/update-7zip.yml new file mode 100644 index 0000000..bd7608a --- /dev/null +++ b/.github/workflows/update-7zip.yml @@ -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