File tree 4 files changed +14
-0
lines changed
4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eu
3
3
4
+ # reads repository JSON text from stdin
4
5
# remove archived repositories, and the reference to this repository
6
+ # print resulting JSON text to stdout
5
7
6
8
cat | jq ' [.[] | select(.archived==false) | select(.name!="cal-itp.github.io")]'
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eu
3
3
4
+ # print public Cal-ITP source repositories as JSON text to stdout
5
+ # see https://docs.github.com/en/rest/reference/repos#list-organization-repositories
6
+
4
7
curl -H " Accept: application/vnd.github.v3+json" https://api.github.com/orgs/cal-itp/repos? type=source
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eu
3
3
4
+ # run the repository data pipeline: get > filter > sort > output
5
+
4
6
source=.github/bin/repos
5
7
target=_data/repos.json
6
8
7
9
$source /get.sh | $source /filter.sh | $source /sort.sh > " $target "
8
10
11
+ # save resulting file name in GitHub Actions context
12
+ # see https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter
13
+
9
14
echo " ::set-output name=data_file::$target "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eu
3
3
4
+ # reads repository JSON text from stdin
5
+ # sort by lowercase name
6
+ # print resulting JSON text to stdout
7
+
4
8
cat | jq " sort_by(.name | ascii_downcase)"
You can’t perform that action at this time.
0 commit comments