fastly / compute-actions

GitHub Actions for building on Fastly Compute.
https://www.fastly.com/blog/introducing-github-actions-for-compute-edge-a-new-resource-to-help-ship-code
MIT License
40 stars 9 forks source link

"Provided cli_version () is not a valid SemVer string" #28

Closed kpeters-cbsi closed 1 year ago

kpeters-cbsi commented 1 year ago

When using the recommended Cargo-based workflow from the README, I get the following output:

FASTLY_API_TOKEN=XXXX act -j deploy --env FASTLY_API_TOKEN -W .github/workflows/deploy-cate.yml
Provide value for 'AWS_ACCESS_KEY_ID': 
Provide value for 'AWS_SECRET_ACCESS_KEY': 
[Deploy Application/deploy] πŸš€  Start image=ghcr.io/catthehacker/ubuntu:act-latest
[Deploy Application/deploy]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:act-latest platform= username= forcePull=false
[Deploy Application/deploy]   🐳  docker create image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Deploy Application/deploy]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Deploy Application/deploy]   ☁  git clone 'https://github.com/actions-rs/toolchain' # ref=v1
[Deploy Application/deploy]   ☁  git clone 'https://github.com/fastly/compute-actions' # ref=v2
[Deploy Application/deploy] ⭐ Run Pre Deploy to Compute@Edge
[Deploy Application/deploy]   🐳  docker cp src=/Users/cpete0624/.cache/act/fastly-compute-actions@v2/ dst=/var/run/act/actions/fastly-compute-actions@v2/
[Deploy Application/deploy] close /var/folders/99/_cljf5rd63xcqkklkrct4v9h0000gn/T/act2201414501: file already closed
[Deploy Application/deploy]   🐳  docker exec cmd=[node /var/run/act/actions/fastly-compute-actions@v2/setup/index.js] user= workdir=
[Deploy Application/deploy]   ❗  ::error::The provided cli_version () is not a valid SemVer string.
[Deploy Application/deploy]   ❗  ::error::
[Deploy Application/deploy]   ❌  Failure - Pre Deploy to Compute@Edge
[Deploy Application/deploy] 🏁  Job succeeded
Error: exitcode '1': failure

Workflow:

name: Deploy Application
on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Install Rust toolchain
      uses: actions-rs/toolchain@v1
      with:
          toolchain: 1.54.0 # current Rust toolchain for Compute@Edge
          target: wasm32-wasi # WebAssembly target

    - name: Deploy to Compute@Edge
      uses: fastly/compute-actions@v2
      env:
        FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
JakeChampion commented 1 year ago

@kpeters-cbsi I see you are using act, there's an issue stating act does not work with this action - https://github.com/fastly/compute-actions/issues/13 - do you have the same cli_version issue when running on GitHub Actions?

kpeters-cbsi commented 1 year ago

I didn't try it with GH actions - when it didn't work with act I wrote a workflow that used the various actions this action is composed of

On Tue, Nov 1, 2022, 15:58 Jake Champion @.***> wrote:

@kpeters-cbsi I see you are using act, there's an issue stating act does not work with this action - #13 - do you have the same cli_version issue when running on GitHub Actions? β€” Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you were mentioned.Message ID: ***@***.***>
kailan commented 1 year ago

Going to close this in favour of #13.