Checkout: [error]fatal couldn't find remote ref

Created on 10 Sep 2019  路  7Comments  路  Source: actions/checkout

I'm having issues when using actions/checkout. When it runs, I get
##[error]fatal: couldn't find remote ref refs/pull/217/merge

The line can (and full log) can be found here.

The action itself is called node-swn-build.

Do I miss some config?

Thanks in advance!

All 7 comments

Same problem here

image

name: Deploy

on: 
  pull_request:
    branches:
      - master

jobs:
  deploy_to_live:
    name: Deploy prod hosting
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node: [10]
    steps: 
      - uses: actions/checkout@master
      - uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - name: Install yarn
        run: npm install yarn@latest -g
      - name: Install dependencies
        run: yarn
      - name: Run build
        env: 
          VUE_APP_API: ${{ secrets.VUE_APP_API }}
          VUE_APP_CMS_URL: ${{ secrets.VUE_APP_CMS_URL }}
          VUE_APP_ENV: ${{ secrets.VUE_APP_ENV }}
          VUE_APP_SIGNIN_URL: ${{ secrets.VUE_APP_SIGNIN_URL }}
        run: yarn build
      - name: Run deploy
        env: 
          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
        run: yarn deploy:prod

did you guys merged your PR before the action workflow start running? the error means the pull request merge ref is not there anymore.

Oh, uhm... maybe...

That explains it. Good to know.

Thanks for clarifying.

@TingluoHuang wow. I thought pull_request means after the PR has been merged. How do I do that? I want to workflow to run after the PR has been merged to master? Thanks.

i think it might be

on: 
  push:
    branches:
    - master

@TingluoHuang holy cow. Thanks man. An on_merge even would be nice tho.

Thanks, @TingluoHuang

Was this page helpful?
0 / 5 - 0 ratings