Skip to content

Commit

Permalink
Limit PC run selection to only builds on the main branch
Browse files Browse the repository at this point in the history
Summary:
## Context
There are times that we run the publish OneDocker job on feature branches in the FBPCS repo to test changes that we are making. This is problematic for the FBPCF repo since they require the last commit from this API to be available on the main branch.

## This Diff
This diff adds the filter that requires the FBPCS run to be on the main branch.

Reviewed By: RuiyuZhu

Differential Revision: D44140323

fbshipit-source-id: 3dd595fcbc256286286344f4ba1d7c997b05a31a
  • Loading branch information
musebc authored and facebook-github-bot committed Mar 16, 2023
1 parent 442bd0b commit 3e71755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
cd fbpcs
git reset --hard $(curl \
--header 'content-type: application/json' \
"https://api.github.com/repos/facebookresearch/fbpcs/actions/workflows/12965519/runs?per_page=1&status=success" | jq \
"https://api.github.com/repos/facebookresearch/fbpcs/actions/workflows/12965519/runs?per_page=1&status=success&branch=main" | jq \
".workflow_runs[0] .head_sha" | tr -d '"')
- name: Build fbpcs image (this uses the locally built fbpcf image as a dependency)
Expand Down

0 comments on commit 3e71755

Please sign in to comment.