feat(diffuser): add H7161 aroma diffuser control entities (#99) (#109) #158
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Automatic Rebase | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| check-branch: | |
| name: Check if dependencies branch exists | |
| runs-on: ubuntu-latest | |
| outputs: | |
| branch_exists: ${{ steps.check.outputs.exists }} | |
| steps: | |
| - name: Check for dependencies branch | |
| id: check | |
| run: | | |
| if git ls-remote --exit-code --heads https://github.com/${{ github.repository }}.git dependencies > /dev/null 2>&1; then | |
| echo "exists=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "exists=false" >> $GITHUB_OUTPUT | |
| fi | |
| rebase: | |
| name: Rebase `dependencies` with `master` | |
| needs: check-branch | |
| if: needs.check-branch.outputs.branch_exists == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | |
| ref: dependencies | |
| - run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git rebase origin/master | |
| git push origin dependencies --force |