From 9a64e4b35840671ab814fd33937148aedbd1d12e Mon Sep 17 00:00:00 2001 From: Ladislav Thon Date: Fri, 19 Jul 2024 16:22:27 +0200 Subject: [PATCH] improve GitHub Actions setup --- .github/workflows/pages.yml | 1 + .github/workflows/pre-release.yml | 9 +++++---- .github/workflows/release.yml | 10 +++++++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 113290b6..0b85e09b 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -7,6 +7,7 @@ jobs: github-pages: name: GitHub Pages runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 571780b5..7978525a 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -7,12 +7,13 @@ on: jobs: release: - runs-on: ubuntu-latest name: Pre-release checks + runs-on: ubuntu-latest + steps: - name: Retrieve project metadata id: metadata - uses: radcortez/project-metadata-action@master + uses: radcortez/project-metadata-action@main with: github-token: ${{secrets.GITHUB_TOKEN}} metadata-file-path: '.github/project.yml' @@ -23,8 +24,8 @@ jobs: echo '::error::Cannot release a SNAPSHOT version.' exit 1 - - uses: radcortez/milestone-review-action@master - name: Milestone review + - name: Milestone review + uses: radcortez/milestone-review-action@main with: github-token: ${{secrets.GITHUB_TOKEN}} milestone-title: ${{steps.metadata.outputs.current-version}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 302ef9f2..eac51600 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,10 +14,11 @@ jobs: if: ${{github.event.pull_request.merged == true}} env: GITHUB_TOKEN: ${{secrets.RELEASE_TOKEN}} + steps: - name: Retrieve project metadata id: metadata - uses: radcortez/project-metadata-action@master + uses: radcortez/project-metadata-action@main with: github-token: ${{secrets.GITHUB_TOKEN}} metadata-file-path: '.github/project.yml' @@ -51,6 +52,7 @@ jobs: run: | export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED" java -version + mvn --version git config --global user.name "SmallRye CI" git config --global user.email "smallrye@googlegroups.com" git checkout -b release @@ -67,17 +69,19 @@ jobs: git push git push --tags - - uses: radcortez/milestone-release-action@master - name: Milestone release + - name: Milestone release + uses: radcortez/milestone-release-action@main with: github-token: ${{secrets.GITHUB_TOKEN}} milestone-title: ${{steps.metadata.outputs.current-version}} + milestone-next: ${{steps.metadata.outputs.next-version}} github-pages: name: GitHub Pages needs: - release runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v4