Fix CI/CD in tags #1703
This commit is contained in:
8
.github/workflows/amap_analyse.yml
vendored
8
.github/workflows/amap_analyse.yml
vendored
@@ -46,12 +46,14 @@ jobs:
|
||||
|
||||
- name: 'Get commit details'
|
||||
run: |
|
||||
FBT_TOOLCHAIN_PATH=/opt source scripts/toolchain/fbtenv.sh
|
||||
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--is_pull"
|
||||
TYPE="pull"
|
||||
elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
||||
TYPE="tag"
|
||||
else
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}"
|
||||
TYPE="other"
|
||||
fi
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE"
|
||||
|
||||
- name: 'Make artifacts directory'
|
||||
run: |
|
||||
|
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -36,12 +36,14 @@ jobs:
|
||||
|
||||
- name: 'Get commit details'
|
||||
run: |
|
||||
FBT_TOOLCHAIN_PATH=/opt source scripts/toolchain/fbtenv.sh
|
||||
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--is_pull"
|
||||
TYPE="pull"
|
||||
elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
||||
TYPE="tag"
|
||||
else
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}"
|
||||
TYPE="other"
|
||||
fi
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE"
|
||||
|
||||
- name: 'Generate suffixes for comment'
|
||||
id: names
|
||||
@@ -159,14 +161,14 @@ jobs:
|
||||
|
||||
- name: 'Get commit details'
|
||||
run: |
|
||||
FBT_TOOLCHAIN_PATH=/opt source scripts/toolchain/fbtenv.sh
|
||||
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--is_pull"
|
||||
TYPE="pull"
|
||||
elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
||||
TYPE="tag"
|
||||
else
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}"
|
||||
TYPE="other"
|
||||
fi
|
||||
echo "WORKFLOW_BRANCH_OR_TAG=${BRANCH_NAME}" >> $GITHUB_ENV
|
||||
echo "DIST_SUFFIX=${SUFFIX}" >> $GITHUB_ENV
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE"
|
||||
|
||||
- name: 'Build the firmware'
|
||||
run: |
|
||||
|
8
.github/workflows/pvs_studio.yml
vendored
8
.github/workflows/pvs_studio.yml
vendored
@@ -32,12 +32,14 @@ jobs:
|
||||
|
||||
- name: 'Get commit details'
|
||||
run: |
|
||||
FBT_TOOLCHAIN_PATH=/opt source scripts/toolchain/fbtenv.sh
|
||||
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--is_pull"
|
||||
TYPE="pull"
|
||||
elif [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
||||
TYPE="tag"
|
||||
else
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}"
|
||||
TYPE="other"
|
||||
fi
|
||||
python3 scripts/get_env.py "--event_file=${{ github.event_path }}" "--type=$TYPE"
|
||||
|
||||
- name: 'Generate suffixes for comment'
|
||||
if: ${{ !github.event.pull_request.head.repo.fork && github.event.pull_request }}
|
||||
|
Reference in New Issue
Block a user