Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find serverless/github-action@v4 #98

Open
mihirgupta0900 opened this issue Dec 31, 2024 · 6 comments
Open

Cannot find serverless/github-action@v4 #98

mihirgupta0900 opened this issue Dec 31, 2024 · 6 comments

Comments

@mihirgupta0900
Copy link

I was using the v4 of the action (as mentioned here: #91 (comment)) 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: #97

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

@Andriy-Kulak
Copy link

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 serverless/serverless#12967 up?

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

@skierkowski
Copy link
Member

@czubocha can you have a look?

@mihirgupta0900
Copy link
Author

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 }}

@Andriy-Kulak
Copy link

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

@cameronmurphy
Copy link

cameronmurphy commented Jan 6, 2025

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.

@Mmarzex
Copy link
Contributor

Mmarzex commented Jan 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants