-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.16 KB
/
create-releases.yml
File metadata and controls
36 lines (33 loc) · 1.16 KB
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
26
27
28
29
30
31
32
33
34
35
36
name: Create releases and tags
on:
push:
branches:
- main
workflow_dispatch:
permissions: {}
jobs:
unreleased-prs-metadata:
name: Get list of pending release pull requests
permissions:
pull-requests: read
contents: read
uses: equinor/radix-reusable-workflows/.github/workflows/template-unreleased-pr-metadata.yml@bbbf79dd34776ca9e9a4dc4fcf6dc643953f37e8 # v1.1.0
release-pull-request:
name: Release pull request
needs:
- unreleased-prs-metadata
if: needs.unreleased-prs-metadata.outputs.unreleased-pull-request-count > 0
strategy:
matrix:
pull-request-number: ${{ fromJson(needs.unreleased-prs-metadata.outputs.unreleased-pull-requests) }}
permissions:
pull-requests: write
contents: read
issues: write
uses: equinor/radix-reusable-workflows/.github/workflows/template-create-release-from-pr.yml@bbbf79dd34776ca9e9a4dc4fcf6dc643953f37e8 # v1.1.0
with:
pull-request-number: ${{ matrix.pull-request-number }}
use-github-app-token: true
github-app-id: ${{ vars.GH_APP_ID }}
secrets:
github-app-private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}