Checkout only needed branches

This commit is contained in:
Jason2866 2021-07-29 17:37:31 +02:00 committed by GitHub
parent 65b7034b0c
commit 3b5180d1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,9 @@ jobs:
- name: Use latest Tasmota development - name: Use latest Tasmota development
run: | run: |
git config --local user.name "Platformio BUILD" git config --local user.name "Platformio BUILD"
git config user.email github-actions@github.com
git switch -c work git switch -c work
git remote add -f Tasmota "https://github.com/arendst/Tasmota.git" git remote add -f Tasmota "https://github.com/arendst/Tasmota.git" --track development
git merge Tasmota/development --allow-unrelated-histories git merge Tasmota/development --allow-unrelated-histories
- name: Push Tasmota # Push updates of latest Tasmota development to repo - name: Push Tasmota # Push updates of latest Tasmota development to repo
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
@ -1392,12 +1393,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true continue-on-error: true
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: Delete all files and folders with:
run: | ref: firmware
rm -rf *
git config --local user.name "Platformio BUILD"
git checkout firmware
- name: Display files from branch firmware - name: Display files from branch firmware
run: ls -R run: ls -R
- name: Remove old firmware files - name: Remove old firmware files
@ -1454,6 +1452,8 @@ jobs:
run: ls -R ./* run: ls -R ./*
- name: Commit files # transfer the new binaries back into the repository - name: Commit files # transfer the new binaries back into the repository
run: | run: |
git config user.name github-actions
git config user.email github-actions@github.com
git rm -r --cached . git rm -r --cached .
git add -f ./* git add -f ./*
git commit -m "Tasmota ESP Binaries http://tasmota.com" git commit -m "Tasmota ESP Binaries http://tasmota.com"