Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
ad739063
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "044281605f5fc037e1048d4360da971fdfbca370"
Unverified
Commit
ad739063
authored
Jan 20, 2022
by
Lysandre Debut
Committed by
GitHub
Jan 20, 2022
Browse files
Tentative workflow improvement (#15255)
parent
57820456
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
14 deletions
+34
-14
.github/workflows/build_dev_documentation.yml
.github/workflows/build_dev_documentation.yml
+20
-2
.github/workflows/delete_dev_documentation.yml
.github/workflows/delete_dev_documentation.yml
+14
-12
No files found.
.github/workflows/build_dev_documentation.yml
View file @
ad739063
...
@@ -35,12 +35,30 @@ jobs:
...
@@ -35,12 +35,30 @@ jobs:
-
name
:
Comment PR
-
name
:
Comment PR
uses
:
thollander/actions-comment-pull-request@v1
uses
:
thollander/actions-comment-pull-request@v1
if
:
github.event.action == 'opened'
|| github.event.action == 'reopened'
if
:
github.event.action == 'opened'
with
:
with
:
message
:
'
Thank
you
for
your
PR!
The
docs
for
this
PR
live
[here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_${{
env.PR_NUMBER
}}).
All
of
your
documentation
changes
will
be
reflected
on
that
endpoint.'
message
:
'
The
docs
for
this
PR
live
[here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_${{
env.PR_NUMBER
}}).
All
of
your
documentation
changes
will
be
reflected
on
that
endpoint.'
GITHUB_TOKEN
:
${{ env.WRITE }}
GITHUB_TOKEN
:
${{ env.WRITE }}
-
name
:
Find Comment
if
:
github.event.action == 'reopened'
uses
:
peter-evans/find-comment@v1
id
:
fc
with
:
issue-number
:
${{ env.PR_NUMBER }}
comment-author
:
HuggingFaceDocBuilder
-
name
:
Update comment
if
:
github.event.action == 'reopened'
uses
:
peter-evans/create-or-update-comment@v1
with
:
comment-id
:
${{ steps.fc.outputs.comment-id }}
token
:
${{ env.WRITE }}
edit-mode
:
replace
body
:
|
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_${{ env.PR_NUMBER }}). All of your documentation changes will be reflected on that endpoint.
-
name
:
Loading cache.
-
name
:
Loading cache.
uses
:
actions/cache@v2
uses
:
actions/cache@v2
id
:
cache
id
:
cache
...
...
.github/workflows/delete_dev_documentation.yml
View file @
ad739063
...
@@ -40,18 +40,20 @@ jobs:
...
@@ -40,18 +40,20 @@ jobs:
git commit -m "Closed PR ${GITHUB_REF##*/}"
git commit -m "Closed PR ${GITHUB_REF##*/}"
git push origin main
git push origin main
-
name
:
Comment
PR
-
name
:
Find
Comment
uses
:
thollander/actions-comment-pull-request@v1
if
:
${{ always() }}
if
:
github.event.pull_request.merged ==
false
uses
:
peter-evans/find-comment@v1
id
:
fc
with
:
with
:
message
:
'
Thank
you
for
your
PR.
The
documentation
will
now
be
removed
from
the
staging
environment
-
feel
free
to
reopen
this
PR
to
recreate
it.'
issue-number
:
${{ env.PR_NUMBER }}
GITHUB_TOKEN
:
${{ env.WRITE }}
comment-author
:
HuggingFaceDocBuilder
-
name
:
Comment PR
uses
:
thollander/actions-comment-pull-request@v1
if
:
github.event.pull_request.merged ==
true
-
name
:
Update comment
if
:
${{ always() }}
uses
:
peter-evans/create-or-update-comment@v1
with
:
with
:
message
:
'
Great
job
merging
this
PR!
the
documentation
will
now
be
removed
from
the
staging
environment.'
comment-id
:
${{ steps.fc.outputs.comment-id }}
GITHUB_TOKEN
:
${{ env.WRITE }}
token
:
${{ env.WRITE }}
edit-mode
:
replace
body
:
|
_The documentation is not available anymore as the PR was closed or merged._
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment