From 72751ea0d8f6ba3bf0e58b035fefc9e11d16914e Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Thu, 16 Jul 2020 00:34:46 +0800 Subject: [PATCH] Add auto monthly build --- .github/workflows/crontab.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/crontab.yml diff --git a/.github/workflows/crontab.yml b/.github/workflows/crontab.yml new file mode 100644 index 0000000..80d4e69 --- /dev/null +++ b/.github/workflows/crontab.yml @@ -0,0 +1,23 @@ +name: Monthly Build + +on: + schedule: + - cron: 0 0 12 * * + +jobs: + build: + name: Pull and Release + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Push Tag + run: | + git config --global user.name 'Dreamacro' + git config --global user.email 'dreamacro@users.noreply.github.com' + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY + git tag $(date +%Y%m%d) + git push origin $(date +%Y%m%d)