-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sketch out GH workflow for generating repos.md
- Loading branch information
1 parent
509aa4e
commit f67be28
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Docs | ||
on: [push] | ||
|
||
# Restrict to one CI run at a time, per branch. In progress runs are *not* cancelled, but pending runs are | ||
# cancelled, except for the most recent: https://docs.github.com/en/actions/using-jobs/using-concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
|
||
jobs: | ||
repos.md: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Ruby | ||
# Docs: https://github.com/ruby/setup-ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true # Runs bundle install and caches gems | ||
ruby-version: .ruby-version | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Generate repos.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: bin/get_project_data > repos.md | ||
|
||
- name: Debug repos.md | ||
run: cat repos.md | ||
|
||
- name: Commit repos.md | ||
run: echo "TODO Commit repos.md" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ GIT_LFS_SKIP_SMUDGE=1 git submodule add -b <DEFAULT_BRANCH> [email protected]:githu | |
Regenerate [`repos.md`](repos.md): | ||
|
||
```bash | ||
# Requires valid GITHUB_ACCESS_TOKEN | ||
# Requires valid GITHUB_TOKEN | ||
bin/get_project_data > repos.md | ||
|
||
# OR, if GitHub GraphQL API v4 schema has changed, update cached copy of schema: | ||
|
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