Page MenuHomePhabricator

github action building main rather than branch
Closed, ResolvedPublic

Description

On a pr image is built, but is building off of main, rather than pr branch. Likely build-and-push needs:

- name: git fetch
  run: |
    git fetch
- name: git checkout
  run: |
    git checkout ${{ github.head_ref }}

added, or toolforge/github-actions/.github/workflows/build-and-push.yaml could be updated to allow more flexibility across projects.