From f020cac8eccf31135c51c394097dabcf7fe57833 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Thu, 25 Nov 2021 15:00:33 +0100 Subject: [PATCH] Update Tasmota_build_devel.yml --- .github/workflows/Tasmota_build_devel.yml | 38 ++++++++++++----------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/Tasmota_build_devel.yml b/.github/workflows/Tasmota_build_devel.yml index e7c98decd..96e63247e 100644 --- a/.github/workflows/Tasmota_build_devel.yml +++ b/.github/workflows/Tasmota_build_devel.yml @@ -1,9 +1,9 @@ -name: Build_firmware_devel +name: Build_firmware_development on: workflow_dispatch: # Manually start a workflow push: - branches: test # Dummy branch run only manually for testing! +# branches: development paths-ignore: - '.github/**' # Ignore changes towards the .github directory - '**.md' # Do no build if *.md files changes @@ -1324,7 +1324,6 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: - - uses: actions/checkout@v2 - uses: actions/download-artifact@v2 with: name: firmware @@ -1361,30 +1360,33 @@ jobs: [ ! -f ./mv_firmware/firmware/* ] || mv ./mv_firmware/firmware/* ./firmware/tasmota/languages/ - name: Display files to transfer 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 - run: | - git config user.name "Platformio BUILD" - git config user.email github-actions@github.com - git switch -c work - 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 - + Start_final_copy: + needs: Upload + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 - name: Creat trigger.txt run: | echo ${GITHUB_SHA} &> trigger.txt echo "$(