deployment only on push on the repo continualAI/avalanche (push + accepted pull-requests)
@@ -58,8 +58,7 @@ jobs:
run: |
FAST_TEST=True USE_GPU=False python -m unittest
- name: clone reports repository
- #if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
- if: always() && github.event_name == 'push'
+ if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
uses: actions/checkout@v2
with:
repository: 'ContinualAI/avalanche-report'
@@ -67,20 +66,17 @@ jobs:
path: 'avalanche-reports'
token: ${{ secrets.REPORT_TOKEN }}
- name: test success
- #if: success() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
- if: success() && github.event_name == 'push'
+ if: success() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
run: |
rm -f avalanche-reports/packages/fail-${{ matrix.python-version }}-*
rm -f avalanche-reports/packages/success-${{ matrix.python-version }}-*
conda list > $"avalanche-reports/packages/success-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
- name: test failure
- # if: failure() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
- if: failure() && github.event_name == 'push'
+ if: failure() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
run: |
conda list > $"avalanche-reports/packages/fail-"${{ matrix.python-version }}"-"$GITHUB_SHA".txt"
- name: commit changes
- # if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
- if: always() && github.event_name == 'push'
+ if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
run: |
cd avalanche-reports
git config --local user.email ${{ secrets.EMAIL }}
@@ -90,8 +86,7 @@ jobs:
git commit -m "Update packages files" -a || true
git pull
- name: Push changes
- # if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
- if: always() && github.event_name == 'push'
+ if: always() && github.event_name == 'push' && github.repository == 'ContinualAI/avalanche'
continue-on-error: true
uses: ad-m/github-push-action@master
with:
