Disable ci/cd on release* branches (#2624)

This commit is contained in:
Max Andreev 2023-04-28 17:25:20 +03:00 committed by GitHub
parent 408edb3e99
commit e42aec68c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 14 deletions

View File

@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- dev - dev
- "release*"
tags: tags:
- '*' - '*'
pull_request: pull_request:
@ -19,7 +18,7 @@ jobs:
runs-on: [self-hosted,FlipperZeroShell] runs-on: [self-hosted,FlipperZeroShell]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code' - name: 'Checkout code'
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -167,7 +166,7 @@ jobs:
target: [f7, f18] target: [f7, f18]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code' - name: 'Checkout code'
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -207,7 +206,7 @@ jobs:
cd testapp cd testapp
ufbt create APPID=testapp ufbt create APPID=testapp
ufbt ufbt
- name: Build example & external apps with uFBT - name: Build example & external apps with uFBT
run: | run: |
for appdir in 'applications/external' 'applications/examples'; do for appdir in 'applications/external' 'applications/examples'; do

View File

@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- dev - dev
- "release*"
tags: tags:
- '*' - '*'
pull_request: pull_request:
@ -19,7 +18,7 @@ jobs:
runs-on: [self-hosted,FlipperZeroShell] runs-on: [self-hosted,FlipperZeroShell]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code' - name: 'Checkout code'
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -64,7 +63,7 @@ jobs:
else else
echo "Python Lint: all good ✨" >> $GITHUB_STEP_SUMMARY; echo "Python Lint: all good ✨" >> $GITHUB_STEP_SUMMARY;
fi fi
- name: 'Check C++ code formatting' - name: 'Check C++ code formatting'
id: syntax_check_cpp id: syntax_check_cpp
if: always() if: always()

View File

@ -13,7 +13,7 @@ jobs:
runs-on: [self-hosted,FlipperZeroShell] runs-on: [self-hosted,FlipperZeroShell]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code' - name: 'Checkout code'
uses: actions/checkout@v3 uses: actions/checkout@v3

View File

@ -4,7 +4,6 @@ on:
push: push:
branches: branches:
- dev - dev
- "release*"
tags: tags:
- '*' - '*'
pull_request: pull_request:
@ -20,7 +19,7 @@ jobs:
runs-on: [self-hosted, FlipperZeroShell] runs-on: [self-hosted, FlipperZeroShell]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout code' - name: 'Checkout code'
uses: actions/checkout@v3 uses: actions/checkout@v3

View File

@ -13,7 +13,7 @@ jobs:
runs-on: [self-hosted, FlipperZeroUnitTest] runs-on: [self-hosted, FlipperZeroUnitTest]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3

View File

@ -13,13 +13,13 @@ jobs:
runs-on: [self-hosted, FlipperZeroUpdaterTest] runs-on: [self-hosted, FlipperZeroUpdaterTest]
steps: steps:
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 1 fetch-depth: 1
submodules: false submodules: false
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- name: 'Get flipper from device manager (mock)' - name: 'Get flipper from device manager (mock)'
@ -50,7 +50,7 @@ jobs:
echo "tag=$(git tag -l --sort=-version:refname | grep -v "rc\|RC" | head -1)" >> $GITHUB_OUTPUT echo "tag=$(git tag -l --sort=-version:refname | grep -v "rc\|RC" | head -1)" >> $GITHUB_OUTPUT
- name: 'Wipe workspace' - name: 'Wipe workspace'
run: find ./ -mount -maxdepth 1 -exec rm -rf {} \; run: find ./ -mount -maxdepth 1 -exec rm -rf {} \;
- name: 'Checkout latest release' - name: 'Checkout latest release'
uses: actions/checkout@v3 uses: actions/checkout@v3