ballerina-platform / setup-ballerina

Set up your GitHub Actions workflow with a specific Ballerina version
Apache License 2.0
106 stars 3 forks source link

Action fails to properly install Ballerina for Windows builds #6

Closed Xenowa closed 3 weeks ago

Xenowa commented 3 months ago

Description: The setup-ballerina action works as expected when a numeric version is provided in the workflow file as version: '2201.8.6', however it fails when version:latest is provided.

Potential Fix:

Change the steps.configure-version.outputs.version to inputs.version

Suggested Labels: Bug

Steps to reproduce:

  1. Create a repository with a workflow file containing setup-ballerina action for Windows.
    
    name: Test Setup Ballerina Action

on: push:

jobs: windows_build: name: Build runs-on: windows-latest concurrency: group: ${{ github.head_ref }}-windows cancel-in-progress: true

steps:
  - name: Checkout Repository
    uses: actions/checkout@v3

  - name: Set up JDK 17
    uses: actions/setup-java@v3
    with:
      distribution: 'temurin'
      java-version: '17.0.7'

  - name: Set Up Ballerina
    uses: ballerina-platform/setup-ballerina@v1.1.0
    with:
      version: latest

2. Trigger workflow by pushing changes to repository

Here is the build stacktrace:

Run ballerina-platform/setup-ballerina@v1.1.0 Run if [[ latest == 'latest' ]]; then % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 60 100 60 0 0 265 0 --:--:-- --:--:-- --:--:-- 267 Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/[20](https://github.com/Xenowa/static-code-analysis-tool/actions/runs/8445859934/job/23133714973#step:4:22)[22](https://github.com/Xenowa/static-code-analysis-tool/actions/runs/8445859934/job/23133714973#step:4:24)-10-11-github-actions-deprecating-save-state-and-set-output-commands/ Run actions/cache@v3 Cache not found for input keys: ballerina-2201.8.6-Windows Run set -x

Error: Process completed with exit code 83.