Skip to content
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NEXT_PUBLIC_ENV=prod
NEXT_PUBLIC_SCREENING_URL=https://aave-api-v2.aave.com

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
scripts/populate-cache.js linguist-vendored
src/locales/*.js linguist-vendored
src/static-build/*.json linguist-vendored


35 changes: 35 additions & 0 deletions .github/actions/fork-result-label/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Add label to PR with CI results
description: Add label to PR with CI results
inputs:
SUCCESS:
description: Text of the comment
required: true
PULL_REQUEST_NUMBER:
description: Pull request id
required: false
default: "0"
runs:
using: "composite"
steps:
- name: delete success label
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0
with:
labels: "CI Passed"
number: ${{ inputs.PULL_REQUEST_NUMBER }}
- name: delete fail label
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0
with:
labels: "CI Failed"
number: ${{ inputs.PULL_REQUEST_NUMBER }}
- name: adding success label
uses: actions-ecosystem/action-add-labels@bd52874380e3909a1ac983768df6976535ece7f8
if: ${{ inputs.SUCCESS == 'true' }}
with:
labels: "CI Passed"
number: ${{ inputs.PULL_REQUEST_NUMBER }}
- name: adding fail label
uses: actions-ecosystem/action-add-labels@bd52874380e3909a1ac983768df6976535ece7f8
if: ${{ inputs.SUCCESS == 'false' }}
with:
labels: "CI Failed"
number: ${{ inputs.PULL_REQUEST_NUMBER }}
46 changes: 46 additions & 0 deletions .github/workflows/add-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test adding label to pr

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.id }}
cancel-in-progress: true

on:
workflow_run:
workflows: ["Build PR From Fork"]
types: ["completed"]
branches-ignore: ["main"]

jobs:
notify_failure:
runs-on: ubuntu-latest
env:
PR_NUMBER: ${{ needs.prepare_jobs.outputs.pr_number }}
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
- name: Get PR number
shell: sh
run: |
echo "${{ env.PR_NUMBER }}"
- name: Label
uses: ./.github/actions/fork-result-label
continue-on-error: true
with:
SUCCESS: 'false'
PULL_REQUEST_NUMBER: 8

notify_success:
runs-on: ubuntu-latest
env:
PR_NUMBER: ${{ needs.prepare_jobs.outputs.pr_number }}
steps:
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
- name: Get PR number
shell: sh
run: |
echo "${{ env.PR_NUMBER }}"
- name: Label
uses: ./.github/actions/fork-result-label
continue-on-error: true
with:
SUCCESS: 'true'
PULL_REQUEST_NUMBER: 7
14 changes: 14 additions & 0 deletions .github/workflows/test-deploy-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ jobs:
❌ CI run has failed!
Please see logs at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'

- name: Label
uses: ./.github/actions/fork-result-label
continue-on-error: true
with:
SUCCESS: 'false'
PULL_REQUEST_NUMBER: ${{ env.PR_NUMBER }}

notify_success:
runs-on: ubuntu-latest
if: success()
Expand All @@ -296,3 +303,10 @@ jobs:
COMMENT_BODY: |
✅ CI run has succeded!
You can find tests and deployment logs at ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'

- name: Label
uses: ./.github/actions/fork-result-label
continue-on-error: true
with:
SUCCESS: 'true'
PULL_REQUEST_NUMBER: ${{ env.PR_NUMBER }}