mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 09:10:16 +00:00
parent
a7424cc115
commit
dbaedd4ed7
14
.github/workflows/directory_writer.yml
vendored
14
.github/workflows/directory_writer.yml
vendored
|
@ -5,22 +5,16 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
max-parallel: 1
|
|
||||||
matrix:
|
|
||||||
python-version: [3.7]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- uses: actions/setup-python@v1
|
||||||
uses: actions/setup-python@v1
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: 3.x
|
||||||
- name: Update DIRECTORY.md
|
- name: Update DIRECTORY.md
|
||||||
run: |
|
run: |
|
||||||
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
||||||
git config --global user.name github-actions
|
git config --global user.name github-actions
|
||||||
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
|
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
|
||||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||||
git commit -am "updating DIRECTORY.md"
|
git commit -am "updating DIRECTORY.md" || true
|
||||||
git push --force origin HEAD:$GITHUB_REF
|
git push --force origin HEAD:$GITHUB_REF || true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user