mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Update Tasmota_build_devel.yml
This commit is contained in:
parent
4f67e0cdb8
commit
f020cac8ec
38
.github/workflows/Tasmota_build_devel.yml
vendored
38
.github/workflows/Tasmota_build_devel.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
name: Build_firmware_devel
|
name: Build_firmware_development
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Manually start a workflow
|
workflow_dispatch: # Manually start a workflow
|
||||||
push:
|
push:
|
||||||
branches: test # Dummy branch run only manually for testing!
|
# branches: development
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.github/**' # Ignore changes towards the .github directory
|
- '.github/**' # Ignore changes towards the .github directory
|
||||||
- '**.md' # Do no build if *.md files changes
|
- '**.md' # Do no build if *.md files changes
|
||||||
@ -1324,7 +1324,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: firmware
|
name: firmware
|
||||||
@ -1361,30 +1360,33 @@ jobs:
|
|||||||
[ ! -f ./mv_firmware/firmware/* ] || mv ./mv_firmware/firmware/* ./firmware/tasmota/languages/
|
[ ! -f ./mv_firmware/firmware/* ] || mv ./mv_firmware/firmware/* ./firmware/tasmota/languages/
|
||||||
- name: Display files to transfer
|
- name: Display files to transfer
|
||||||
run: ls -R ./*
|
run: ls -R ./*
|
||||||
|
- name: Push Firmware files to tmp repo
|
||||||
|
uses: Jason2866/copy_file_to_another_repo_action@main
|
||||||
|
env:
|
||||||
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
|
with:
|
||||||
|
source_file: 'firmware'
|
||||||
|
destination_repo: 'arendst/tmp_copy'
|
||||||
|
destination_branch: 'firmware'
|
||||||
|
user_email: 'github-actions@github.com'
|
||||||
|
user_name: 'github-actions'
|
||||||
|
|
||||||
- name: Push Firmware files to https://github.com/arendst/Tasmota-firmware
|
Start_final_copy:
|
||||||
run: |
|
needs: Upload
|
||||||
git config user.name "Platformio BUILD"
|
runs-on: ubuntu-latest
|
||||||
git config user.email github-actions@github.com
|
steps:
|
||||||
git switch -c work
|
- uses: actions/checkout@v2
|
||||||
git remote add -f Tasmota "https://github.com/arendst/Tasmota-firmware.git" --track main
|
|
||||||
git rm -r --cached .
|
|
||||||
git add -f ./firmware/*
|
|
||||||
git commit -m ${GITHUB_SHA}
|
|
||||||
git merge Tasmota-firmware/main --allow-unrelated-histories
|
|
||||||
git push -u origin main
|
|
||||||
|
|
||||||
- name: Creat trigger.txt
|
- name: Creat trigger.txt
|
||||||
run: |
|
run: |
|
||||||
echo ${GITHUB_SHA} &> trigger.txt
|
echo ${GITHUB_SHA} &> trigger.txt
|
||||||
echo "$(<trigger.txt)"
|
echo "$(<trigger.txt)"
|
||||||
- name: Push trigger.txt to start workflow in repo https://github.com/arendst/Tasmota-firmware
|
- name: Push trigger.txt to start workflow copy in tmp repo
|
||||||
uses: Jason2866/copy_file_to_another_repo_action@main
|
uses: Jason2866/copy_file_to_another_repo_action@main
|
||||||
env:
|
env:
|
||||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
with:
|
with:
|
||||||
source_file: 'trigger.txt'
|
source_file: 'trigger.txt'
|
||||||
destination_repo: 'arendst/Tasmota-firmware'
|
destination_repo: 'Jason2866/tmp_copy'
|
||||||
destination_branch: 'action-development'
|
destination_branch: 'action'
|
||||||
user_email: 'github-actions@github.com'
|
user_email: 'github-actions@github.com'
|
||||||
user_name: 'github-actions'
|
user_name: 'github-actions'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user