github-action icon indicating copy to clipboard operation
github-action copied to clipboard

Cannot find serverless/github-action@v4

Open mihirgupta0900 opened this issue 1 year ago • 8 comments

I was using the v4 of the action (as mentioned here: https://github.com/serverless/github-action/issues/91#issuecomment-2384074335) and was working find until yesterday.

Currently facing this error:

Error: Unable to resolve action `serverless/github-action@v4`, unable to find version `v4`

I do not see a v4 release and looks like this could be caused when this PR was merged: https://github.com/serverless/github-action/pull/97

This is currently blocking us and I think a new release needs to be published to fix this issue

mihirgupta0900 avatar Dec 31 '24 07:12 mihirgupta0900

I am getting the same issue :-(. I cannot deploy serverless using github actions.

@eahefnawy or @skierkowski - was anything changed in the last couple of days since I brought a related issue https://github.com/serverless/serverless/issues/12967 up?

Screenshot 2025-01-03 at 4 03 27 p m

Andriy-Kulak avatar Jan 03 '25 22:01 Andriy-Kulak

@czubocha can you have a look?

skierkowski avatar Jan 04 '25 00:01 skierkowski

Here's what I'm currently doing to deploy:

      - name: Install Serverless
        run: npm install -g serverless

      - name: NPM Install
        run: npm install

      - name: Serverless Deploy
        run: serverless deploy --debug --stage ${{ env.DGN }} --region ${{ env.AWS_REGION }} --force
        env:
          SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}

mihirgupta0900 avatar Jan 05 '25 17:01 mihirgupta0900

thanks for the reference @mihirgupta0900. will try that on monday.

@czubocha @skierkowski, in case extra context is helpful, below is my simplified yaml github action config that is causing the "unable to resolve serverless/github-action@v4" error

name: ...
jobs:
  deploy:
    name: Deploy functions
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [20.x]
    steps:
      - uses: actions/checkout@v4

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}
          cache: "yarn"

      - run: yarn install --frozen-lock-file

      - name: serverless deploy
        if: github.ref == 'refs/heads/main'
        uses: serverless/github-action@v4
        with:
          args: deploy --stage production

Andriy-Kulak avatar Jan 05 '25 17:01 Andriy-Kulak

Same issue here, has worked for ages despite there being no 4.0 tag for this repo, but randomly just stopped working.

For anyone whose deployment pipeline this is breaking, this fork is a drop in replacement.

cameronmurphy avatar Jan 06 '25 10:01 cameronmurphy

Sorry guys, we merged the v4 branch and didn't realize the branch got deleted. This should be fixed now.

Mmarzex avatar Jan 06 '25 17:01 Mmarzex

Image

Image

Is this problem fixed? I cannot run action with serverless/github-action@v4 @Mmarzex

namsic6460 avatar Apr 09 '25 06:04 namsic6460

Hey @namsic6460, are you using the frameworkVersion property in your serverless.yml for version pinning?
If so, make sure you're using a valid semantic version - there was no 4.0.0 version published.
See the releases page for available versions.

czubocha avatar Apr 09 '25 13:04 czubocha