Create release pull request automation workflow

This commit is contained in:
Darren Ethier 2020-08-30 12:35:42 -04:00 committed by GitHub
parent b8932cc7bd
commit 03a7765c8c
1 changed files with 25 additions and 0 deletions

View File

@ -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