update triggers and path
This commit is contained in:
parent
90cd4acf65
commit
95a2ec1806
|
@ -4,7 +4,6 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- dev
|
- dev
|
||||||
- silas/cu
|
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -80,12 +79,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: raw-test-bpf
|
name: raw-test-bpf
|
||||||
path: raw-test-bpf.log
|
path: raw-test-bpf.log
|
||||||
|
|
||||||
# Download logs and process them
|
# Download logs and process them
|
||||||
process-logs:
|
process-logs:
|
||||||
name: Process logs
|
name: Process logs
|
||||||
# if: |
|
if: github.actor != 'github-actions[bot]'
|
||||||
# (github.actor != 'github-actions[bot]' && github.ref_name =='main') ||
|
|
||||||
# (github.actor != 'github-actions[bot]' && github.ref_name=='dev')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, tests]
|
needs: [lint, tests]
|
||||||
steps:
|
steps:
|
||||||
|
@ -118,12 +116,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: cu-per-ix-clean
|
name: cu-per-ix-clean
|
||||||
path: cu-per-ix-clean.log
|
path: cu-per-ix-clean.log
|
||||||
# Push clean logs to git
|
|
||||||
|
# Push clean logs to git if main/dev branch
|
||||||
push-logs:
|
push-logs:
|
||||||
name: Push logs
|
name: Push logs
|
||||||
# if: |
|
if: |
|
||||||
# (github.actor != 'github-actions[bot]' && github.ref_name =='main') ||
|
(github.actor != 'github-actions[bot]' && github.ref_name == 'main') ||
|
||||||
# (github.actor != 'github-actions[bot]' && github.ref_name=='dev')
|
(github.actor != 'github-actions[bot]' && github.ref_name == 'dev')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, tests, process-logs]
|
needs: [lint, tests, process-logs]
|
||||||
steps:
|
steps:
|
||||||
|
@ -133,7 +132,7 @@ jobs:
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: cu-per-ix-clean
|
name: cu-per-ix-clean
|
||||||
path: cu-stats/
|
path: ./
|
||||||
- name: Push log to git
|
- name: Push log to git
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
|
@ -141,4 +140,3 @@ jobs:
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "chore: push cu test logs"
|
git commit -m "chore: push cu test logs"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue