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