faiss/.github/workflows/build.yml
Michael Norris 189a9d4461 Fix build-release workflow (#4162)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4162

https://docs.github.com/en/actions/sharing-automations/reusing-workflows#using-inputs-and-secrets-in-a-reusable-workflow

Seems like we need `secrets` in the workflow and in the caller.

Reviewed By: asadoughi

Differential Revision: D68965899

fbshipit-source-id: 25580471c727d5ae86c4e7dd4c6ea72b388b1acf
2025-01-31 13:52:00 -08:00

18 lines
407 B
YAML

name: Build
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
tags:
- 'v*'
jobs:
build-pull-request:
uses: ./.github/workflows/build-pull-request.yml
build-release:
uses: ./.github/workflows/build-release.yml
secrets:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')