Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Update Actions Versions. #19

Merged
merged 2 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Commit and Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat README.md > docs/index.md
git config user.name "Github Action"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git checkout master
git add -A
git commit -m "[bot] Update index.md to match README.md"
git push origin ${{ github.head_ref }}
fi
mkdocs gh-deploy -m "[bot] Updated documentation"
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Commit and Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat README.md > docs/index.md
git config user.name "Github Action"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git checkout master
git add -A
git commit -m "[bot] Update index.md to match README.md"
git push origin ${{ github.head_ref }}
fi
mkdocs gh-deploy -m "[bot] Updated documentation"
53 changes: 27 additions & 26 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install --no-cache-dir autopep8
- name: Run AutoPEP8
run: |
autopep8 -r --in-place --aggressive --aggressive .
- name: Commit and Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "Github Action"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git checkout ${{ github.head_ref }}
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git add -A
git commit -m "[bot] Lint files"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" ${{ github.head_ref }}
else
echo "no changes";
fi
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install --no-cache-dir autopep8
- name: Run AutoPEP8
run: |
autopep8 -r --in-place --aggressive --aggressive .
- name: Commit and Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "Github Action"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git fetch
git checkout ${{ github.head_ref }}
if [ -n "$(git status --porcelain)" ]; then
echo "there are changes";
git add -A
git commit -m "[bot] Lint files"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" ${{ github.head_ref }}
else
echo "no changes";
fi