Skip to content

Commit 7706a0f

Browse files
authored
Retry push after publishing (#1400)
cc @Wauplin @hanouticelina @SBrandeis for viz eg this job publishes but failed to push after: https://github.com/huggingface/huggingface.js/actions/runs/14734177391/job/41355916109
1 parent 13f5ae5 commit 7706a0f

15 files changed

+20
-18
lines changed

.github/workflows/agents-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- run: pnpm --filter agents... build && pnpm publish --no-git-checks .
5656
env:
5757
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58-
- run: git pull --rebase && git push --follow-tags
58+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5959
# hack - reuse actions/setup-node@v3 just to set a new registry
6060
- uses: actions/setup-node@v3
6161
with:

.github/workflows/blob-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- run: pnpm publish --no-git-checks .
5454
env:
5555
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56-
- run: git pull --rebase && git push --follow-tags
56+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5757
# hack - reuse actions/setup-node@v3 just to set a new registry
5858
- uses: actions/setup-node@v3
5959
with:

.github/workflows/dduf-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- run: pnpm publish --no-git-checks .
5757
env:
5858
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
- run: git pull --rebase && git push --follow-tags
59+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
6060
# hack - reuse actions/setup-node@v3 just to set a new registry
6161
- uses: actions/setup-node@v3
6262
with:

.github/workflows/gguf-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- run: pnpm publish --no-git-checks .
5757
env:
5858
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
- run: git pull --rebase && git push --follow-tags
59+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
6060
# hack - reuse actions/setup-node@v3 just to set a new registry
6161
- uses: actions/setup-node@v3
6262
with:

.github/workflows/hub-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- run: pnpm publish --no-git-checks .
6060
env:
6161
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62-
- run: git pull --rebase && git push --follow-tags
62+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
6363
# hack - reuse actions/setup-node@v3 just to set a new registry
6464
- uses: actions/setup-node@v3
6565
with:

.github/workflows/inference-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- run: pnpm publish --no-git-checks .
6060
env:
6161
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62-
- run: git pull --rebase && git push --follow-tags
62+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
6363
# hack - reuse actions/setup-node@v3 just to set a new registry
6464
- uses: actions/setup-node@v3
6565
with:

.github/workflows/jinja-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: pnpm publish --no-git-checks .
5353
env:
5454
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
- run: git pull --rebase && git push --follow-tags
55+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5656
# hack - reuse actions/setup-node@v3 just to set a new registry
5757
- uses: actions/setup-node@v3
5858
with:

.github/workflows/languages-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: pnpm publish --no-git-checks .
5353
env:
5454
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
- run: git pull --rebase && git push --follow-tags
55+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5656
# hack - reuse actions/setup-node@v3 just to set a new registry
5757
- uses: actions/setup-node@v3
5858
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: |
4848
# Could also use pnpm --filter [${{ steps.since.outputs.SINCE }}] format:check
4949
# But this way we can see the diff
50-
pnpm --filter [${{ steps.since.outputs.SINCE }}] format
50+
pnpm -r format
5151
git diff | head -n 100
5252
git diff --name-only --exit-code
5353

.github/workflows/mcp-client-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- run: pnpm publish --no-git-checks .
5656
env:
5757
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58-
- run: git pull --rebase && git push --follow-tags
58+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5959
# hack - reuse actions/setup-node@v3 just to set a new registry
6060
- uses: actions/setup-node@v3
6161
with:

.github/workflows/ollama-utils-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- run: pnpm publish --no-git-checks .
5757
env:
5858
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
59-
- run: git pull --rebase && git push --follow-tags
59+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
6060
# hack - reuse actions/setup-node@v3 just to set a new registry
6161
- uses: actions/setup-node@v3
6262
with:

.github/workflows/space-header-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- run: pnpm publish --no-git-checks .
5353
env:
5454
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
- run: git pull --rebase && git push --follow-tags
55+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5656
# hack - reuse actions/setup-node@v3 just to set a new registry
5757
- uses: actions/setup-node@v3
5858
with:

.github/workflows/tasks-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- run: pnpm publish --no-git-checks .
5454
env:
5555
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56-
- run: git pull --rebase && git push --follow-tags
56+
- run: (git pull --rebase && git push --follow-tags) || (git pull --rebase && git push --follow-tags)
5757
# hack - reuse actions/setup-node@v3 just to set a new registry
5858
- uses: actions/setup-node@v3
5959
with:

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,9 +1342,10 @@ export const outetts = (model: ModelData): string[] => {
13421342
// Don’t show this block on GGUF / ONNX mirrors
13431343
const t = model.tags ?? [];
13441344
if (t.includes("gguf") || t.includes("onnx")) return [];
1345-
1345+
13461346
// v1.0 HF → minimal runnable snippet
1347-
return [`
1347+
return [
1348+
`
13481349
import outetts
13491350
13501351
enum = outetts.Models("${model.id}".split("/", 1)[1]) # VERSION_1_0_SIZE_1B
@@ -1358,8 +1359,9 @@ export const outetts = (model: ModelData): string[] => {
13581359
speaker=speaker,
13591360
)
13601361
).save("output.wav")
1361-
`];
1362-
};
1362+
`,
1363+
];
1364+
};
13631365

13641366
export const pxia = (model: ModelData): string[] => [
13651367
`from pxia import AutoModel

packages/tasks/src/tasks/visual-document-retrieval/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ const taskData: TaskDataCustom = {
6868
youtubeId: "",
6969
};
7070

71-
export default taskData;
71+
export default taskData;

0 commit comments

Comments
 (0)