Skip to content

Commit

Permalink
Update to pass secrets as input
Browse files Browse the repository at this point in the history
  • Loading branch information
xKhronoz committed Jan 26, 2024
1 parent 15e18d7 commit 026e9ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
test-build-python-package:
uses: ./.github/workflows/python-tests.yml
sync-to-deployment-fork:
needs: [test-build-node-js-app, test-build-python-package]
uses: ./.github/workflows/sync-to-deployment-fork.yml
secrets:
PAT: ${{ secrets.PAT }}
sync-to-hugging-face-hub-spaces:
uses: ./.github/workflows/sync-to-hugging-face-hub.yml
needs: [test-build-node-js-app, test-build-python-package]
uses: ./.github/workflows/sync-to-hugging-face-hub.yml
secrets:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/sync-to-deployment-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
workflow_dispatch:
# to run this workflow from another workflow
workflow_call:
inputs:
secrets:
PAT:
required: true

jobs:
sync-deployment-fork:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sync-to-hugging-face-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
workflow_dispatch:
# to run this workflow from another workflow
workflow_call:
inputs:
secrets:
HF_TOKEN:
required: true

jobs:
sync-to-hub:
Expand Down

0 comments on commit 026e9ce

Please sign in to comment.