Skip to content

Commit

Permalink
ci: fix ipfs upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Nov 1, 2023
1 parent 28e9744 commit 72e3cd7
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 13 deletions.
44 changes: 43 additions & 1 deletion .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@ jobs:
runs-on: ubuntu-latest
name: Ipfs uploader
steps:
- uses: actions/checkout@v3
- name: Generate a token
id: generate_token
if: github.event_name != 'pull_request'
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.UPDATE_BOT_APP_ID }}
private_key: ${{ secrets.UPDATE_BOT_TOKEN }}

- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token || github.token }}
persist-credentials: true

- uses: actions/setup-node@v3
with:
Expand All @@ -44,6 +54,17 @@ jobs:
run: |
cat .github/outputs/all_changed_files.json
- name: replace main with hash
if: github.event_name != 'pull_request' && steps.changed-files.outputs.any_changed == 'true'
run: |
json_array=($(jq -r '.[]' ".github/outputs/all_changed_files.json"))
for i in "${json_array[@]}"
do
npx prettier $i --write
sed -i 's@https://github.com/bgd-labs/aave-proposals/blob/main/@https://github.com/bgd-labs/aave-proposals/blob/${{ github.sha }}/@g' $i
sed -i 's@https://github.com/bgd-labs/aave-proposals/tree/main/@https://github.com/bgd-labs/aave-proposals/blob/${{ github.sha }}/@g' $i
done
- name: Upload
if: steps.changed-files.outputs.any_changed == 'true'
env:
Expand All @@ -55,3 +76,24 @@ jobs:
do
npx aave-cli ipfs ${{ github.event_name != 'pull_request' && '-u' || ''}} $i
done
- name: check diff and potentially commit
if: github.event_name != 'pull_request' && steps.changed-files.outputs.any_changed == 'true'
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
if [[ -z $(git status -s) ]]
then
echo "tree is clean"
else
git config --global user.name 'Cache bot'
git config --global user.email '[email protected]'
git config --global pull.rebase true
git stash
git pull origin ${{ github.event.repository.default_branch }}
git stash apply
git add src
git commit -am "fix(cache): automated cache update [skip ci]"
git push origin ${{ github.event.repository.default_branch }}
exit
fi
21 changes: 9 additions & 12 deletions src/20231029_AaveV3Ethereum_ACIPhaseII/ACIPhaseII.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,16 @@ We will also delegate engineering resources for service providers via mini-dapps
Externally, the ACI has been a voice for the Aave DAO in various capacities.

- **Event Participation**: The ACI has participated in and sponsored several global events to share insights and collaborate with industry peers. In 2023, our engagements included:
- Web3DNA (Paris)
- EthDubai 2023
- Prague DeFi Summit/EthPrague
- Stable Summit (Paris)
- EthCC[6] (Paris)
- Dappcon Berlin 2023
- LëtzStake (Luxembourg)
- EthLisbon
- Devconnect Istanbul

- Web3DNA (Paris)
- EthDubai 2023
- Prague DeFi Summit/EthPrague
- Stable Summit (Paris)
- EthCC[6] (Paris)
- Dappcon Berlin 2023
- LëtzStake (Luxembourg)
- EthLisbon
- Devconnect Istanbul
A detailed list of our engagements can be found [here](https://www.notion.so/f676c1ce96f44c648ef2a40f7f1bb442?pvs=21).

- **Regulatory Engagement**: The ACI's founder holds the position of president of the DeFi committee of the French Lobby ADAN. This role involves dialogues with regulators, institutions, and governments in France and Europe regarding the DeFi sector. The ACI has been involved in discussions related to the \"Mica 2\" regulation, which addresses DeFi services.

The ACI, as one of the voices for the Aave DAO, has consistently worked towards enhancing the DAO's presence and reputation in the broader ecosystem.
Expand All @@ -86,7 +84,6 @@ The ACI will continue to be one of the voices of Aave across the globe, supporti
- **Budget**: 375k GHO
- **Scope**: Continuation of the ACI's work across Skyward, Growth, and Representation.


## References

- Implementation: [AaveV3Ethereum](https://github.com/bgd-labs/aave-proposals-v3/blob/main/src/20231029_AaveV3Ethereum_ACIPhaseII/AaveV3Ethereum_ACIPhaseII_20231029.sol)
Expand Down

0 comments on commit 72e3cd7

Please sign in to comment.