From b9aff14d5c6e56fb881ed5dc781a7cffc62e9816 Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Sun, 10 Nov 2019 01:18:52 +0900 Subject: [PATCH] ci: dink-bot (#27) --- .denov | 1 + .github/workflows/build.yml | 3 ++- .github/workflows/bump.yml | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .denov create mode 100644 .github/workflows/bump.yml diff --git a/.denov b/.denov new file mode 100644 index 00000000..0c2a959e --- /dev/null +++ b/.denov @@ -0,0 +1 @@ +v0.23.0 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43589069..7caf2d8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,8 @@ jobs: - uses: actions/checkout@v1 - name: Install Deno run: | - curl -fsSL https://deno.land/x/install/install.sh | bash -s -- v0.20.0 + DENO_VERSION=$(cat .denov) + curl -fsSL https://deno.land/x/install/install.sh | bash -s -- ${DENO_VERSION} - name: Run Tests run: | export PATH=$HOME/.deno/bin:$PATH diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml new file mode 100644 index 00000000..53e7ef1b --- /dev/null +++ b/.github/workflows/bump.yml @@ -0,0 +1,22 @@ +name: Bump + +on: + schedule: + - cron: 0 13 * * * +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install Deno + run: | + DENO_VERSION=$(cat .denov) + curl -fsSL https://deno.land/x/install/install.sh | bash -s -- ${DENO_VERSION} + - name: Check And Bump + env: + GITHUB_USER: keroxp + GITHUB_REPO: deno-redis + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + export PATH=$HOME/.deno/bin:$PATH + deno run -A https://denopkg.com/keroxp/dink-bot@v0.1.0/main.ts