forked from opensource-observer/oss-funding
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from metagov/main
Merge main changes
- Loading branch information
Showing
16 changed files
with
2,109 additions
and
502 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 |
---|---|---|
|
@@ -21,23 +21,33 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r daoip-5/scripts/requirements.txt | ||
- name: Generate JSON files | ||
id: generate_files | ||
run: | | ||
# Detecting the updated/added folder in the funders directory | ||
FOLDER_PATH=$(git diff --name-only HEAD^ HEAD | grep '^data/funders' | head -1 | xargs dirname) | ||
FOLDER_PATH=$(git diff --name-only HEAD^ HEAD | grep '^data/funders' | head -1 | xargs dirname || true) | ||
if [ -z "$FOLDER_PATH" ]; then | ||
echo "No changes detected in funders directory. Exiting." | ||
exit 0 | ||
fi | ||
# Running the main.py script with the detected path | ||
python3 daoip-5/scripts/main.py --path "./$FOLDER_PATH" | ||
- name: Commit generated files | ||
- name: Check for changes and commit | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add daoip-5/json | ||
git commit -m "Auto-generated files for new/updated folder" | ||
if [ -n "$(git status --porcelain)" ]; then | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add daoip-5/json | ||
git commit -m "Auto-generated files for new/updated folder" | ||
else | ||
echo "No changes to commit." | ||
exit 0 | ||
- name: Push changes and create PR | ||
if: success() && steps.generate_files.outputs.FOLDER_PATH != '' | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Auto-generated DAOIP-5 files for new/updated folder | ||
|
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 |
---|---|---|
|
@@ -170,6 +170,27 @@ | |
"email": "[email protected]", | ||
"image": "https://optimism.org/images/{'name': 'retrofunding4'}.png", | ||
"coverImage": "https://optimism.org/images/{'name': 'retrofunding4'}_cover.png" | ||
}, | ||
{ | ||
"type": "GrantPool", | ||
"id": { | ||
"name": "retrofunding5" | ||
}, | ||
"name": { | ||
"name": "retrofunding5" | ||
}, | ||
"description": "Grants pool for {'name': 'retrofunding5'}.", | ||
"isOpen": false, | ||
"applicationsURI": "https://optimism.org/applications/{'name': 'retrofunding5'}_example.json", | ||
"governanceURI": "https://optimism.org/governance/{'name': 'retrofunding5'}_example.md", | ||
"attestationIssuersURI": "https://optimism.org/attestations/{'name': 'retrofunding5'}_example.json", | ||
"requiredCredentials": [ | ||
"DAO Attestation", | ||
"KYC" | ||
], | ||
"email": "[email protected]", | ||
"image": "https://optimism.org/images/{'name': 'retrofunding5'}.png", | ||
"coverImage": "https://optimism.org/images/{'name': 'retrofunding5'}_cover.png" | ||
} | ||
] | ||
} |
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
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
Oops, something went wrong.