-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 1.3 KB
/
release.yaml
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
37
38
39
40
41
42
43
44
45
name: release
on:
pull_request:
paths:
- .github/workflows/release.yaml
- .github/workflows/reusable--*.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- entrypoint.d/**
- hack/**
push:
branches:
- main
paths:
- .github/workflows/release.yaml
- .github/workflows/reusable--*.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- entrypoint.d/**
- hack/**
jobs:
# When Renovate has updated the version of actions/runner,
# automatically create a new release into GitHub Releases.
create-release-if-not-exists:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: release-token
with:
app-id: ${{ secrets.E2E_TEST_APP_ID }}
private-key: ${{ secrets.E2E_TEST_APP_PRIVATE_KEY }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: bash hack/create-release-if-not-exists.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Trigger the build workflow against the new release
RELEASE_TOKEN: ${{ steps.release-token.outputs.token }}