serverless / github-action

:zap::octocat: A Github Action for deploying with the Serverless Framework
Apache License 2.0
662 stars 174 forks source link

Error: Failed to download action 'https://api.github.com/repos/workflows/checkout/tarball/master' #18

Closed DarinDev1000 closed 2 years ago

DarinDev1000 commented 4 years ago

Here is my workflow file

on:
  push:
    branches:
      - master
name: Serverless deploy master branch
jobs:
  deploy:
    name: deploy
    runs-on: ubuntu-latest
    steps:
    - uses: workflows/checkout@master
    - name: before install
      run: echo before install
    - name: npm install
      uses: actions/npm@master
      with:
        args: install
    - name: before install
      run: echo finished install
    - name: serverless deploy
      uses: serverless/github-action@master
      with:
        args: deploy
      env:
        SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}

I have also tried - uses: actions/checkout@master as the first step.

When I run it, I get this error:

2020-01-22T21:31:04.9818185Z ##[section]Starting: Request a runner to run this job
2020-01-22T21:31:05.2418214Z Requesting a hosted runner in current repository's account/organization with labels: 'ubuntu-latest', require runner match: True
2020-01-22T21:31:05.8018658Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2020-01-22T21:31:05.8139594Z ##[section]Finishing: Request a runner to run this job
2020-01-22T21:31:15.2526699Z Current runner version: '2.164.0'
2020-01-22T21:31:15.2527949Z Prepare workflow directory
2020-01-22T21:31:15.2735166Z Prepare all required actions
2020-01-22T21:31:15.2747430Z Download action repository 'workflows/checkout@master'
2020-01-22T21:31:15.4039177Z ##[warning]Failed to download action 'https://api.github.com/repos/workflows/checkout/tarball/master'. Error Response status code does not indicate success: 404 (Not Found).
2020-01-22T21:31:15.4044574Z ##[warning]Back off 17.036 seconds before retry.
2020-01-22T21:31:32.5099955Z ##[warning]Failed to download action 'https://api.github.com/repos/workflows/checkout/tarball/master'. Error Response status code does not indicate success: 404 (Not Found).
2020-01-22T21:31:32.5102934Z ##[warning]Back off 14.714 seconds before retry.
2020-01-22T21:31:47.3207311Z ##[error]Response status code does not indicate success: 404 (Not Found).

Any ideas why it has an error? Thanks

DarinDev1000 commented 4 years ago

This pull request https://github.com/serverless/github-action/pull/19 fixes my issue.

The updated code should be:

on:
  push:
    branches:
      - master
name: Serverless deploy master branch
jobs:
  deploy:
    name: deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - run: npm ci
    - name: serverless deploy
      uses: serverless/github-action@master
      with:
        args: deploy
      env:
        SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
        # or if using AWS creds directly
        # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
teamzz111 commented 4 years ago

@DarinDev1000 works, you're awesome.

DarinDev1000 commented 4 years ago

Thanks

surajr3 commented 2 years ago

facing the same issur, can we re-open this

alexrocco commented 2 years ago

Also facing the same issue.

surajr3 commented 2 years ago

Github actions had an outage yesterday at US, this is the reason https://www.githubstatus.com/incidents/gh0vvxtlj5v7 It started working fine after 6 hours, we can close this