Skip to content

New approach to rewriting rules #1348

New approach to rewriting rules

New approach to rewriting rules #1348

Workflow file for this run

name: release
on:
pull_request:
branches: [unstable]
types: [closed]
jobs:
cut-release:
# Trigger only on merge of [release] pull request
if: startsWith(github.event.pull_request.title, '[release]') && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# See https://github.com/actions/checkout/issues/124#issuecomment-606277160
ref: ${{ github.event.pull_request.head.ref }}
# We only need the two commits of the release prep branch
fetch-depth: 2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cut Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HEAD_REF: ${{ github.head_ref }}
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git checkout HEAD~1
./script/release-publish.sh