aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release-trigger.yml
blob: 101406a7410cc6065dd240ac17ba56ceaf0b95ac (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Trigger Release

on:
  pull_request_review:
    types: [submitted]

jobs:
  check-review:
    runs-on: ubuntu-latest
    steps:
    - name: Validate release PR
      uses: edgedb/action-release/validate-pr@master
      id: release
      continue-on-error: true
      with:
        github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
        version_file: immutables/_version.py
        version_line_pattern: |
          __version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
    - name: Trigger release
      uses: edgedb/action-release/trigger@master
      if: steps.release.outputs.version != 0
      with:
        github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
        release_validation_check: "validate-release-request"