-
Notifications
You must be signed in to change notification settings - Fork 265
45 lines (40 loc) · 1.32 KB
/
update-moon-landing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Github Action that creates or updates a PR on moon-landing
# to update hub-docs there.
#
# - if existing PR: update the PR
# - if no PR: create new PR
on:
push:
branches:
- main
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: huggingface/moon-landing
ref: "main"
token: ${{ secrets.MOONLANDING_PUSH }}
path: "moon-landing"
submodules: true
- name: Make changes to pull request
run: cd moon-landing/server/hub-docs && git checkout origin/main
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
path: "moon-landing"
token: ${{ secrets.MOONLANDING_PUSH }}
commit-message: ⬆️ Upgrade hub-docs with https://github.com/huggingface/hub-docs/commit/${{ github.sha }}
committer: machineuser <[email protected]>
author: machineuser <[email protected]>
signoff: false
branch: upgrade-hub-docs
delete-branch: true
title: "⬆️ Upgrade hub-docs"
body: |
Upgrade hub-docs
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
draft: false