This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 611
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct syntax of "Update README" action
- Loading branch information
1 parent
4f5defa
commit 5178b26
Showing
1 changed file
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
name: Update README | ||
on: push # For testing | ||
# push: | ||
# branches: [master] | ||
on: | ||
push: | ||
branches: [master] | ||
jobs: | ||
build: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.x | ||
architecture: x64 | ||
- name: Update README | ||
run: python update_readme.py | ||
- name: Publish README | ||
uses: mikeal/publish-to-github-action@4e60bca | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-18.04 | ||
name: Update README | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.x | ||
architecture: x64 | ||
- name: Update README | ||
run: python update_readme.py | ||
- name: Publish README | ||
uses: mikeal/publish-to-github-action@4e60bca | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |