-
-
Notifications
You must be signed in to change notification settings - Fork 13
25 lines (23 loc) · 679 Bytes
/
embed_code.yml
File metadata and controls
25 lines (23 loc) · 679 Bytes
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
name: Embed code in README
on:
pull_request:
branches:
- main
types:
- reopened
jobs:
embed-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
ref: refs/heads/${{ github.head_ref }}
- uses: './'
with:
markdown: "README.md"
token: ${{ secrets.GITHUB_TOKEN }}
message: "auto commit for embedding"
no_change: "No change on Readme."
silent: true