This repository was archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use app token fix: use default branch ci: add test link fix: test if this works fix: set pull default fix: ci another test fix: test fix: no idea
Showing
2 changed files
with
52 additions
and
8 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 |
---|---|---|
|
@@ -7,15 +7,26 @@ on: | |
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
ipfs-upload: | ||
runs-on: ubuntu-latest | ||
name: Ipfs uploader | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Generate a token | ||
id: generate_token | ||
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 }} | ||
persist-credentials: true | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
|
@@ -62,11 +73,23 @@ jobs: | |
npx aave-cli ipfs $i -u ${{ github.event_name != 'pull_request'}} | ||
done | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@712add83f26c1e359c046a6ca3dd677fb7017626 | ||
- name: check diff and potentially commit | ||
if: github.event_name != 'pull_request' && steps.changed-files.outputs.any_changed == 'true' | ||
with: | ||
committer: Ipfs-bot <[email protected]> | ||
commit-message: "chore(ipfs): automated branch/hash replacement [skip ci]" | ||
title: "chore(ipfs): automated branch/hash replacement" | ||
base: "main" | ||
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 |
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,21 @@ | ||
--- | ||
title: Proposal title | ||
author: Proposal author | ||
discussions: https://governance.aave.com/t/somelink | ||
--- | ||
|
||
## Simple Summary | ||
|
||
## Motivation | ||
|
||
## Specification | ||
|
||
## References | ||
|
||
- | ||
|
||
## Copyright | ||
|
||
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). | ||
|
||
- Tests: [Ethereum](https://github.com/bgd-labs/aave-proposals/blob/main/src/20230825_AaveV3_Eth_GhoFreezing/AaveV3_Ethereum_GhoFreezing_20230825.t.sol) |
305e26e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Foundry report
Build log
Test success 🌈