Commit b68ba32 1 parent 15df337 commit b68ba32 Copy full SHA for b68ba32
File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -41,16 +41,32 @@ jobs:
41
41
secrets :
42
42
github-token : ${{ secrets.GITHUB_TOKEN }}
43
43
44
+ create-release-token :
45
+ runs-on : ubuntu-24-04
46
+ if : ${{ github.event_name != 'pull_request' }}
47
+ outputs :
48
+ token : ${{ steps.app-token.outputs.token }}
49
+ steps :
50
+ - uses : actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
51
+ id : app-token
52
+ with :
53
+ app-id : ${{ secrets.RELEASER_APP_ID }}
54
+ private-key : ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
55
+ owner : ${{ github.repository_owner }}
56
+ repositories : |
57
+ kube-powertools
58
+
44
59
release :
45
60
uses : chgl/.github/.github/workflows/standard-release.yaml@bc38fcaae865b5c200914fdf58239ba902a13842 # v1.8.5
46
61
needs :
47
62
- build
63
+ - create-release-token
48
64
permissions :
49
65
contents : write
50
66
pull-requests : write
51
67
issues : write
52
68
secrets :
53
- semantic-release-token : ${{ secrets.CI_SEMANTIC_RELEASE_TOKEN }}
69
+ semantic-release-token : ${{ needs.create-release-token.outputs.token }}
54
70
55
71
copy-image-to-dockerhub :
56
72
name : copy ghcr.io image to DockerHub
You can’t perform that action at this time.
0 commit comments