actions-settings
actions-settings copied to clipboard
Docker build fails with Command failed: git checkout octokit-updates
When my action runs the Docker build fails with the below error. Is this something on my end? Haven't been able to find anything to resolve the failure. Any suggestions?
Step 1/15 : FROM node:10-alpine ---> aa67ba258e18 Step 2/15 : LABEL version="1.0.0" ---> Using cache ---> 520c25452bb7 Step 3/15 : LABEL repository="https://github.com/elstudio/actions-settings" ---> Using cache ---> 39b9d75745cb Step 4/15 : LABEL homepage="https://github.com/elstudio/actions-settings" ---> Using cache ---> 51dea2c3d5ba Step 5/15 : LABEL maintainer="el-studio Actions [email protected]" ---> Using cache ---> b7d6dfdcf8c6 Step 6/15 : LABEL com.github.actions.name="GitHub Action to run Probot/settings" ---> Using cache ---> 2813b02ee33a Step 7/15 : LABEL com.github.actions.description="Sets and enforces repository defaults." ---> Using cache ---> ffc5f5eb6a22 Step 8/15 : LABEL com.github.actions.icon="settings" ---> Using cache ---> fe5cff5fdf5b Step 9/15 : LABEL com.github.actions.color="purple" ---> Using cache ---> 3630de3edc97 Step 10/15 : ENV PATH=$PATH:/app/node_modules/.bin ---> Using cache ---> 40d7ed82c52b Step 11/15 : WORKDIR /app ---> Using cache ---> 9ce1c093948a Step 12/15 : COPY . . ---> Using cache ---> 1d5223422eb0 Step 13/15 : RUN apk --update --no-cache add git ---> Using cache ---> 0918d67a7d93 Step 14/15 : RUN npm install --production ---> Running in d91ae53b4005 npm ERR! code 1 npm ERR! Command failed: git checkout octokit-updates npm ERR! error: pathspec 'octokit-updates' did not match any file(s) known to git npm ERR!
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-01-03T16_06_17_170Z-debug.log The command '/bin/sh -c npm install --production' returned a non-zero code: 1
Warning: Docker build failed with exit code 1, back off 9.552 seconds before retry.
This is my yml file
name: Enforce repository settings
on: [push]
jobs: probot-settings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run probot-settings
uses: elstudio/actions-settings@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}