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
name: Update READMEs and download links from GitHub profile page | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dispatch trigger | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git remote add readmes https://github.com/getlantern/.github.git | |
git fetch readmes | |
git checkout --no-overlay readmes/main -- profile | |
git add README* # add every file that starts with README | |
git diff --quiet && git diff --staged --quiet || git commit -m 'fetched from getlantern/.github/profile'; git push |