Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/update_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
update_metadata:
permissions:
contents: read
id-token: write # needed for the HF Trusted Publisher token exchange
runs-on: ubuntu-22.04
defaults:
run:
Expand All @@ -30,11 +31,12 @@ jobs:
- name: Setup environment
run: |
pip install --upgrade pip
pip install datasets pandas
pip install datasets pandas "huggingface_hub>=1.19.0"
pip install .[torch]

- name: Update metadata
env:
HF_TOKEN: ${{ secrets.SAYAK_HF_TOKEN }}
# Short-lived token (1h) from the Hub's Trusted Publishers, scoped to this dataset only
HF_OIDC_RESOURCE: datasets/huggingface/diffusers-metadata
run: |
python utils/update_metadata.py --commit_sha ${{ github.sha }}
Loading