Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 79d4d2fb
authored
Jan 12, 2025
by
Netfan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ci: retry deploy while faild
1 parent
b785bc57
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
.github/workflows/deploy.yml
.github/workflows/rerun.yml
.github/workflows/deploy.yml
View file @
79d4d2f
...
@@ -153,3 +153,20 @@ jobs:
...
@@ -153,3 +153,20 @@ jobs:
username
:
${{ secrets.WEB_NAIVE_FTP_ACCOUNT }}
username
:
${{ secrets.WEB_NAIVE_FTP_ACCOUNT }}
password
:
${{ secrets.WEB_NAIVE_FTP_PASSWORD }}
password
:
${{ secrets.WEB_NAIVE_FTP_PASSWORD }}
local-dir
:
./apps/web-naive/dist/
local-dir
:
./apps/web-naive/dist/
rerun-on-failure
:
name
:
Rerun on failure
needs
:
-
deploy-playground-ftp
-
deploy-docs-ftp
-
deploy-antd-ftp
-
deploy-ele-ftp
-
deploy-naive-ftp
if
:
failure() && fromJSON(github.run_attempt) < 10
runs-on
:
ubuntu-latest
steps
:
-
name
:
Retry ${{ fromJSON(github.run_attempt) }} of 10
env
:
GH_REPO
:
${{ github.repository }}
GH_TOKEN
:
${{ github.token }}
run
:
gh workflow run rerun.yml -F run_id=${{ github.run_id }}
.github/workflows/rerun.yml
0 → 100644
View file @
79d4d2f
name
:
Rerun workflow
on
:
workflow_dispatch
:
inputs
:
run_id
:
description
:
The workflow id to relanch
required
:
true
jobs
:
rerun
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
rerun ${{ inputs.run_id }}
env
:
GH_REPO
:
${{ github.repository }}
GH_TOKEN
:
${{ github.token }}
run
:
|
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
gh run rerun ${{ inputs.run_id }} --failed
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment