From 54aa85a39cebe876d1d590cbac0b3ff16c5fea14 Mon Sep 17 00:00:00 2001 From: slitaz-cn Date: Thu, 6 May 2021 18:39:23 +0800 Subject: [PATCH] update --- .github/workflows/linux64-3.16.55.tazpkg.yml | 38 +++++++++++++++++++ .../{schedule.yml => teasiu-5.0.tazpkg.yml} | 0 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/linux64-3.16.55.tazpkg.yml rename .github/workflows/{schedule.yml => teasiu-5.0.tazpkg.yml} (100%) diff --git a/.github/workflows/linux64-3.16.55.tazpkg.yml b/.github/workflows/linux64-3.16.55.tazpkg.yml new file mode 100644 index 0000000..60f15fe --- /dev/null +++ b/.github/workflows/linux64-3.16.55.tazpkg.yml @@ -0,0 +1,38 @@ +name: Update linux64-3.16.55.tazpkg + +on: + workflow_dispatch: + schedule: + - cron: '0 */23 * * *' + +jobs: + update: + runs-on: ubuntu-latest + steps: + - name: Checkout codebase + uses: actions/checkout@v2 + + - name: Update firefox.tazpkg Version + run: | + LASTEST_TAG="$( curl -fsSL "http://www.ecoo.top:8083/dl/slitaz/linux64-3.16.55.tazpkg" | md5sum | cut -d" " -f1 )" + echo "LASTEST_TAG=$LASTEST_TAG" >> ${GITHUB_ENV} + CURRENT_TAG="$( md5sum packages/linux64-3.16.55.tazpkg | cut -d" " -f1 )" + echo "CURRENT_TAG=$CURRENT_TAG" >> ${GITHUB_ENV} + if [ ${CURRENT_TAG} != ${LASTEST_TAG} ] + then + wget -O ./packages/linux64-3.16.55.tazpkg http://www.ecoo.top:8083/dl/slitaz/linux64-3.16.55.tazpkg + fi + + - name: Push + if: env.CURRENT_TAG != env.LASTEST_TAG && !cancelled() + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git commit -am "Update linux64-3.16.55.tazpkg to ${LASTEST_TAG}" + git push -v --progress + + - name: Delete workflow runs + uses: GitRML/delete-workflow-runs@main + with: + retain_days: 1 + keep_minimum_runs: 3 diff --git a/.github/workflows/schedule.yml b/.github/workflows/teasiu-5.0.tazpkg.yml similarity index 100% rename from .github/workflows/schedule.yml rename to .github/workflows/teasiu-5.0.tazpkg.yml