Projects STRLCPY scan4all Commits 20a2fbca
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    .github/workflows/readme-update.yml
    1  -name: 📝 Readme Update
    2  - 
    3  -on:
    4  - workflow_run:
    5  - workflows: ["🗒 update reade me"]
    6  - types:
    7  - - completed
    8  - workflow_dispatch:
    9  - 
    10  -jobs:
    11  - build:
    12  - runs-on: ubuntu-latest
    13  - if: github.repository == 'hktalent/scan4all'
    14  - steps:
    15  - - name: Install tree
    16  - run: sudo apt-get install tree -y
    17  - 
    18  - - name: Check out code
    19  - uses: actions/checkout@master
    20  - with:
    21  - persist-credentials: false
    22  - fetch-depth: 0
    23  - 
    24  - - name: Set up Python
    25  - uses: actions/setup-python@v2
    26  - with:
    27  - python-version: "3.8"
    28  - 
    29  - - name: Update README
    30  - id: readme-update
    31  - run: |
    32  - python .github/scripts/update-readme.py
    33  - echo "::set-output name=changes::$(git status -s | wc -l)"
    34  - 
    35  - - name: Commit files
    36  - if: steps.readme-update.outputs.changes > 0
    37  - run: |
    38  - git config --local user.email "[email protected]"
    39  - git config --local user.name "GitHub Action"
    40  - git commit -m "Auto README Update [$(date)] :robot:" -a
    41  - 
    42  - - name: Push changes
    43  - if: steps.readme-update.outputs.changes > 0
    44  - uses: ad-m/github-push-action@master
    45  - with:
    46  - github_token: ${{ secrets.GITHUB_TOKEN }}
    47  - branch: ${{ github.ref }}
    48  - 
Please wait...
Page is in error, reload to recover