Do not save built firmware when using beta
This commit is contained in:
28
.github/workflows/validate_esphome_beta.yml
vendored
28
.github/workflows/validate_esphome_beta.yml
vendored
@@ -196,34 +196,6 @@ jobs:
|
|||||||
yaml_file: prebuilt/nspanel_esphome_prebuilt.yaml
|
yaml_file: prebuilt/nspanel_esphome_prebuilt.yaml
|
||||||
version: beta
|
version: beta
|
||||||
|
|
||||||
- name: Move and Rename Firmware File
|
|
||||||
run: |
|
|
||||||
mkdir -p prebuilt
|
|
||||||
cp prebuilt/.esphome/build/nspanel/.pioenvs/nspanel/firmware.bin prebuilt/nspanel_esphome_prebuilt.bin || true
|
|
||||||
cp prebuilt/.esphome/build/nspanel/.pioenvs/nspanel/firmware-factory.bin prebuilt/nspanel_esphome_prebuilt-factory.bin || true
|
|
||||||
|
|
||||||
- name: Set Commit Message
|
|
||||||
id: set_commit_message
|
|
||||||
run: |
|
|
||||||
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
|
||||||
echo "COMMIT_MESSAGE=Pre-built firmware for NSPanel - ${{ github.event.pull_request.title }}" >> $GITHUB_ENV
|
|
||||||
elif [[ "${{ github.event_name }}" == "push" ]]; then
|
|
||||||
commit_message=$(git log -1 --pretty=format:'%s')
|
|
||||||
echo "COMMIT_MESSAGE=Pre-built firmware for NSPanel - $commit_message" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "COMMIT_MESSAGE=Pre-built firmware for NSPanel" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Commit and Push Firmware Files
|
|
||||||
run: |
|
|
||||||
git config --global user.name 'GitHub Actions'
|
|
||||||
git config --global user.email 'actions@github.com'
|
|
||||||
git add prebuilt/*.bin
|
|
||||||
git commit -m "${{ env.COMMIT_MESSAGE }}"
|
|
||||||
git push
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
build_climate_cool_bluetooth_proxy:
|
build_climate_cool_bluetooth_proxy:
|
||||||
name: Climate cool & BLE proxy
|
name: Climate cool & BLE proxy
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
|||||||
Reference in New Issue
Block a user