From 89b19c191c9ca51295320b8f9fef099cf2f14b58 Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Thu, 18 Jul 2024 12:04:54 +0200 Subject: [PATCH] update actions/github-script to v7 --- .github/workflows/branch-main.yml | 2 +- .github/workflows/reusable-check-version.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/branch-main.yml b/.github/workflows/branch-main.yml index 5709e41..246e7cc 100644 --- a/.github/workflows/branch-main.yml +++ b/.github/workflows/branch-main.yml @@ -38,7 +38,7 @@ jobs: run: | echo "Tag version: ${CURRENT_GALAXY_VERSION}" - name: Create Tag - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const {CURRENT_GALAXY_VERSION} = process.env diff --git a/.github/workflows/reusable-check-version.yml b/.github/workflows/reusable-check-version.yml index 35d3209..3239bfd 100644 --- a/.github/workflows/reusable-check-version.yml +++ b/.github/workflows/reusable-check-version.yml @@ -45,13 +45,13 @@ jobs: echo "MAIN_GALAXY_VERSION=${MAIN_GALAXY_VERSION}" >> "${GITHUB_ENV}" - name: Validate the current version if: ${{ ! env.CURRENT_GALAXY_VERSION }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | core.setFailed('Your Galaxy version is absent or empty!') - name: Compare versions if: ${{ inputs.compare-versions && env.MAIN_GALAXY_VERSION >= env.CURRENT_GALAXY_VERSION }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | core.setFailed('Your Galaxy version is lower than the version in the main branch or equal. Please bump your version!')