Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Dec 19, 2024
1 parent 5c1ccb0 commit e6ffcf0
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@ concurrency:

permissions:
contents: write
issues: write

jobs:
prepare-gradle:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
id: app-token
name: Create GitHub App Token
with:
app-id: ${{ vars.CI_APP_ID }}
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}

- name: git author
run: |
git config --global user.name "SmallRye CI"
git config --global user.email "[email protected]"
- uses: actions/checkout@v4
with:
token: ${{steps.app-token.outputs.token}}

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

- name: git author
run: |
git config --global user.name "SmallRye CI"
git config --global user.email "[email protected]"
- name: Prepare Gradle
run: |
echo "version=${{steps.metadata.outputs.current-version}}" > tools/gradle-plugin/gradle.properties
Expand All @@ -44,4 +54,6 @@ jobs:
name: Prepare Release
if: ${{ github.event.pull_request.merged == true}}
uses: smallrye/.github/.github/workflows/prepare-release.yml@main
with:
ref: main
secrets: inherit

0 comments on commit e6ffcf0

Please sign in to comment.