From 57ab1146aa51880a6767f48996f07e54289c13a2 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 13 Jun 2021 15:51:37 +0100 Subject: [PATCH] Cron jobs to auto-approve for running, and retest the list --- .github/workflows/approve.yml | 16 ++++++++++++++++ .github/workflows/rust.yml | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/approve.yml diff --git a/.github/workflows/approve.yml b/.github/workflows/approve.yml new file mode 100644 index 0000000..0925262 --- /dev/null +++ b/.github/workflows/approve.yml @@ -0,0 +1,16 @@ +name: Automatic Approve +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: +jobs: + automatic-approve: + name: Automatic Approve + runs-on: ubuntu-latest + steps: + - name: Automatic Approve + uses: mheap/automatic-approve-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + workflows: "ci.yml" + dangerous_files: "src/main.rs,Cargo.toml,Cargo.lock" \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 04265a2..549f995 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,6 +5,8 @@ on: branches: [ master ] pull_request: branches: [ master ] + schedule: + - cron: '0 0 * * *' env: CARGO_TERM_COLOR: always