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

[error]fatal couldn't find remote ref #36

Closed
rster2002 opened this issue Sep 10, 2019 · 7 comments
Closed

[error]fatal couldn't find remote ref #36

rster2002 opened this issue Sep 10, 2019 · 7 comments

Comments

@rster2002
Copy link

rster2002 commented Sep 10, 2019

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!

@jofftiquez
Copy link

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

@TingluoHuang
Copy link
Member

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

@rster2002
Copy link
Author

rster2002 commented Sep 10, 2019

Oh, uhm... maybe...

That explains it. Good to know.

Thanks for clarifying.

@jofftiquez
Copy link

@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.

@TingluoHuang
Copy link
Member

i think it might be

on: 
  push:
    branches:
    - master

@jofftiquez
Copy link

jofftiquez commented Sep 11, 2019

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

@Alessthana
Copy link

Thanks, @TingluoHuang

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

4 participants