Skip to content

Commit

Permalink
Create mirror.yml
Browse files Browse the repository at this point in the history
adapted from the actions that sync getantern/grants with getlantern/automation/grants-docs
  • Loading branch information
jay-418 authored Jun 12, 2024
1 parent acbf036 commit 89884f4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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

0 comments on commit 89884f4

Please sign in to comment.