From 03a7765c8c16a80bb5250affedf4e5784ac630f1 Mon Sep 17 00:00:00 2001 From: Darren Ethier Date: Sun, 30 Aug 2020 12:35:42 -0400 Subject: [PATCH] Create release pull request automation workflow --- .../workflows/release-pull-request.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 plugins/woocommerce-blocks/.github/workflows/release-pull-request.yml diff --git a/plugins/woocommerce-blocks/.github/workflows/release-pull-request.yml b/plugins/woocommerce-blocks/.github/workflows/release-pull-request.yml new file mode 100644 index 00000000000..c2def48ba15 --- /dev/null +++ b/plugins/woocommerce-blocks/.github/workflows/release-pull-request.yml @@ -0,0 +1,25 @@ +name: Release Pull Request Automation + +# Controls when the action will run. Triggers the workflow on create branch or tag +# events but only acts on branch create. +on: + create: +jobs: + release-pull-request-automation: + if: ${{ github.event.ref_type == 'branch' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + date > .release-artifact + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "generating changeset for pull request" + rm .release-artifact + git commit -am "generating changeset for pull request" + git push + - uses: woocommerce/automations@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + automations: release