Skip to content

Commit e6ffcf0

Browse files
committed
Update workflow
1 parent 5c1ccb0 commit e6ffcf0

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/prepare-release.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,23 @@ concurrency:
1212

1313
permissions:
1414
contents: write
15+
issues: write
1516

1617
jobs:
1718
prepare-gradle:
1819
runs-on: ubuntu-latest
1920

2021
steps:
21-
- uses: actions/checkout@v4
22+
- uses: actions/create-github-app-token@v1
23+
id: app-token
24+
name: Create GitHub App Token
25+
with:
26+
app-id: ${{ vars.CI_APP_ID }}
27+
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
2228

23-
- name: git author
24-
run: |
25-
git config --global user.name "SmallRye CI"
26-
git config --global user.email "smallrye@googlegroups.com"
29+
- uses: actions/checkout@v4
30+
with:
31+
token: ${{steps.app-token.outputs.token}}
2732

2833
- uses: radcortez/project-metadata-action@main
2934
name: retrieve project metadata
@@ -32,6 +37,11 @@ jobs:
3237
github-token: ${{secrets.GITHUB_TOKEN}}
3338
metadata-file-path: '.github/project.yml'
3439

40+
- name: git author
41+
run: |
42+
git config --global user.name "SmallRye CI"
43+
git config --global user.email "smallrye@googlegroups.com"
44+
3545
- name: Prepare Gradle
3646
run: |
3747
echo "version=${{steps.metadata.outputs.current-version}}" > tools/gradle-plugin/gradle.properties
@@ -44,4 +54,6 @@ jobs:
4454
name: Prepare Release
4555
if: ${{ github.event.pull_request.merged == true}}
4656
uses: smallrye/.github/.github/workflows/prepare-release.yml@main
57+
with:
58+
ref: main
4759
secrets: inherit

0 commit comments

Comments
 (0)