From 2924262965d15e9d03061680e61529142b064a9a Mon Sep 17 00:00:00 2001 From: Michael Torres Date: Tue, 5 Oct 2021 18:16:49 -0700 Subject: [PATCH] Add autobuild to stable --- .github/workflows/stable.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/stable.yml diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml new file mode 100644 index 0000000..ff8cb94 --- /dev/null +++ b/.github/workflows/stable.yml @@ -0,0 +1,35 @@ +name: Build Stable Rust + +on: + workflow_dispatch: + schedule: + - cron: '0 2 * * 3' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + make build + make test + env: + RUST_VERSION: stable + publish: + needs: [test] + if: github.repository == 'rust-serverless/lambda-rust' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: make publish-tag + env: + RUST_VERSION: stable + create_issue: + runs-on: ubuntu-latest + needs: [publish] + if: always() && (needs.publish.result == 'failure') + steps: + - run: gh issue create --title "Stable publication failed" --body "Stable publication failed" --label "bug" -R $GITHUB_REPOSITORY + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + \ No newline at end of file