mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
27 lines
961 B
YAML
27 lines
961 B
YAML
# The objective of this GitHub Action is to update the DIRECTORY.md file (if needed)
|
|
# when doing a git push
|
|
name: directory_writer
|
|
on: [push]
|
|
jobs:
|
|
directory_writer:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: 3.14
|
|
allow-prereleases: true
|
|
- name: Write DIRECTORY.md
|
|
run: |
|
|
scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
|
git config --global user.name "$GITHUB_ACTOR"
|
|
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
|
|
- name: Update DIRECTORY.md
|
|
run: |
|
|
git add DIRECTORY.md
|
|
git commit -am "updating DIRECTORY.md" || true
|
|
git push --force origin HEAD:$GITHUB_REF || true
|