[GH-ISSUE #394] zip: not found #279

Closed
opened 2026-03-01 21:41:59 +03:00 by kerem · 2 comments
Owner

Originally created by @JBaczuk on GitHub (Oct 16, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/394

I have an action that zips a file:

name: build and test

on: push
  deploy:
    defaults:
      run:
        working-directory: ./lambda/custom
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master'
    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: npm install
      - run: npm run build
      - run: zip -r -X "../deploy.zip" * 
        env:
          CI: true
      - name: Deploy app
        uses: appleboy/lambda-action@master
        with:
          aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws_region: es-east-1
          function_name: myFunction
          zip_file: ./deploy.zip
      - run: ls

and I get the following error:

> zip -r -X "../deploy.zip" *
sh: 1: zip: not found
Originally created by @JBaczuk on GitHub (Oct 16, 2020). Original GitHub issue: https://github.com/nektos/act/issues/394 I have an action that zips a file: ``` name: build and test on: push deploy: defaults: run: working-directory: ./lambda/custom runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npm run build - run: zip -r -X "../deploy.zip" * env: CI: true - name: Deploy app uses: appleboy/lambda-action@master with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws_region: es-east-1 function_name: myFunction zip_file: ./deploy.zip - run: ls ``` and I get the following error: ``` > zip -r -X "../deploy.zip" * sh: 1: zip: not found ```
kerem 2026-03-01 21:41:59 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@ghost commented on GitHub (Oct 30, 2020):

Please see https://github.com/nektos/act#default-runners-are-intentionally-incomplete

<!-- gh-comment-id:719621385 --> @ghost commented on GitHub (Oct 30, 2020): Please see https://github.com/nektos/act#default-runners-are-intentionally-incomplete
Author
Owner

@github-actions[bot] commented on GitHub (Dec 30, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:752287063 --> @github-actions[bot] commented on GitHub (Dec 30, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#279
No description provided.