From faa99172ada8dfcec039eebcaf41b09e5eefc355 Mon Sep 17 00:00:00 2001 From: fabasoad Date: Thu, 8 Jan 2026 23:31:33 +0900 Subject: [PATCH 1/2] fix: downgrade default version from 3.3 to 3.2 --- .github/workflows/functional-tests.yml | 6 +++--- README.md | 6 +++--- action.yml | 2 +- src/install-cobc.sh | 6 +----- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index a84828c..48ed55e 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -26,11 +26,11 @@ jobs: strategy: fail-fast: false matrix: - version: ["4.0", "3.3", "3.2"] + version: ["4.0", "3.2", "3.1"] runs-on: ubuntu-latest steps: - name: Checkout ${{ github.repository }} - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup COBOL uses: ./ with: @@ -50,7 +50,7 @@ jobs: force: ["true", "false"] steps: - name: Checkout ${{ github.repository }} - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Setup COBOL 1 id: setup-cobol-1 uses: ./ diff --git a/README.md b/README.md index fae839d..81e5dc7 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ language. ```yaml - uses: fabasoad/setup-cobol-action@v1 with: - # (Optional) GnuCOBOL version. Defaults to 3.3. - version: "3.3" + # (Optional) GnuCOBOL version. Defaults to 3.2. + version: "3.2" # (Optional) If "true" it installs cobc even if it is already installed on a # runner. Otherwise, skips installation. force: "false" @@ -53,7 +53,7 @@ jobs: name: Setup runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: fabasoad/setup-cobol-action@v1 - name: Run script run: | diff --git a/action.yml b/action.yml index c10fc1c..9aa1c38 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,7 @@ inputs: version: description: "GnuCOBOL version." required: false - default: "3.3" + default: "3.2" force: description: | If "true" it installs cobc even if it is already installed on a runner. diff --git a/src/install-cobc.sh b/src/install-cobc.sh index 41d1547..8482ddc 100755 --- a/src/install-cobc.sh +++ b/src/install-cobc.sh @@ -27,11 +27,7 @@ main() { sudo apt-get -y install ranger autoconf build-essential mkdir -p "${bin_path}" - if [ "${input_version}" = "3.3" ]; then - url="https://ci.appveyor.com/api/projects/GitMensch/gnucobol-3-x/artifacts/gnucobol-3.3-dev.tar.gz?job=Image:%20Ubuntu2204" - else - url="https://sourceforge.net/projects/open-cobol/files/gnucobol/${minor_version}/gnucobol-${input_version}.tar.gz" - fi + url="https://sourceforge.net/projects/open-cobol/files/gnucobol/${minor_version}/gnucobol-${input_version}.tar.gz" log_info "Downloading ${url}" curl -sLk "${url}" -o "${bin_path}/gnucobol.tar.gz" tar -xvf "${bin_path}/gnucobol.tar.gz" -C "${bin_path}" --strip-components 1 From 18b5ce504b12b387d6ac9cae4a7b277605ccbfb4 Mon Sep 17 00:00:00 2001 From: fabasoad Date: Thu, 8 Jan 2026 23:35:50 +0900 Subject: [PATCH 2/2] ci: remove test for 3.1 --- .github/workflows/functional-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 48ed55e..22dc782 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - version: ["4.0", "3.2", "3.1"] + version: ["4.0", "3.2"] runs-on: ubuntu-latest steps: - name: Checkout ${{ github.repository }}