From add898b84b43a49e699d8db90edd681fe35a8bf8 Mon Sep 17 00:00:00 2001 From: hedinasr Date: Mon, 4 Aug 2025 13:14:24 +0200 Subject: [PATCH] BUILD-8678: set build number in actions --- build-gradle/action.yml | 3 +++ build-maven/action.yml | 3 +++ build-npm/action.yml | 4 ++++ build-poetry/action.yml | 7 +++---- build-yarn/action.yml | 3 +++ 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/build-gradle/action.yml b/build-gradle/action.yml index 958d9676..56f46bcc 100644 --- a/build-gradle/action.yml +++ b/build-gradle/action.yml @@ -47,6 +47,9 @@ outputs: runs: using: composite steps: + - name: Get build number + uses: SonarSource/ci-github-actions/get-build-number@master + id: build-number - name: Set build parameters shell: bash env: diff --git a/build-maven/action.yml b/build-maven/action.yml index fac93ff0..26626d43 100644 --- a/build-maven/action.yml +++ b/build-maven/action.yml @@ -39,6 +39,9 @@ inputs: runs: using: composite steps: + - name: Get build number + uses: SonarSource/ci-github-actions/get-build-number@master + id: build-number - name: Set build parameters shell: bash env: diff --git a/build-npm/action.yml b/build-npm/action.yml index 2a0dc3d1..d0f88d65 100644 --- a/build-npm/action.yml +++ b/build-npm/action.yml @@ -40,9 +40,13 @@ outputs: description: The JFrog build info UI URL value: ${{ steps.build.outputs.BUILD_INFO_URL }} + runs: using: composite steps: + - name: Get build number + uses: SonarSource/ci-github-actions/get-build-number@master + id: build-number - name: Set build parameters shell: bash env: diff --git a/build-poetry/action.yml b/build-poetry/action.yml index d26c8de6..9368322d 100644 --- a/build-poetry/action.yml +++ b/build-poetry/action.yml @@ -30,6 +30,9 @@ inputs: runs: using: composite steps: + - name: Get build number + uses: SonarSource/ci-github-actions/get-build-number@master + id: build-number - name: Set build parameters shell: bash env: @@ -41,10 +44,6 @@ runs: echo "ARTIFACTORY_READER_ROLE=${ARTIFACTORY_READER_ROLE}" >> "$GITHUB_ENV" echo "ARTIFACTORY_DEPLOYER_ROLE=${ARTIFACTORY_DEPLOYER_ROLE}" >> "$GITHUB_ENV" cp ${GITHUB_ACTION_PATH}/mise.local.toml mise.local.toml - # mkdir .actions/ - # ln -s "${GITHUB_ACTION_PATH}/../get-build-number" .actions/get-build-number - # - uses: ./.actions/get-build-number - # id: build-number - name: Cache local Poetry cache uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: diff --git a/build-yarn/action.yml b/build-yarn/action.yml index ea7eefe6..b4520688 100644 --- a/build-yarn/action.yml +++ b/build-yarn/action.yml @@ -43,6 +43,9 @@ outputs: runs: using: composite steps: + - name: Get build number + uses: SonarSource/ci-github-actions/get-build-number@master + id: build-number - name: Set build parameters shell: bash env: