-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (47 loc) · 1.52 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
46
47
48
49
name: release
on:
pull_request:
paths:
- .github/workflows/release.yaml
- .github/workflows/reusable--*.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- hack/**
push:
branches:
- main
paths:
- .github/workflows/release.yaml
- .github/workflows/reusable--*.yaml
- Dockerfile
- Dockerfile.*
- entrypoint.sh
- 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@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
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
- id: create-release
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 }}
- if: steps.create-release.outputs.comment
uses: int128/comment-action@a20dbdebd79ab886a1e7a20d16bfa7dbaa732e5a # v1.33.0
with:
update-if-exists: replace
post: ${{ steps.create-release.outputs.comment }}