diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index da4485b..bd56cff 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -17,12 +17,16 @@ jobs: python-version: '3.x' - run: pip install -r script/requirements.txt - run: script/bump-version.py ${{ github.event.inputs.version }} - - run: | + - name: Commit version bump + id: commit_version + run: | git config user.name esphomebot git config user.email contact@esphome.io git add . git commit -m "Bump version to v${{ github.event.inputs.version }}" git push + COMMIT=$(git rev-parse HEAD) + echo "::set-output name=commit_sha::${COMMIT}" - if: ${{ contains(github.event.inputs.version, 'b') }} name: Create Beta Release uses: actions/create-release@v1 @@ -33,6 +37,7 @@ jobs: release_name: ${{ github.event.inputs.version }} body: 'See https://beta.esphome.io/changelog/index.html' prerelease: true + commitish: ${{ steps.commit_version.outputs.commit_sha }} - if: ${{ !contains(github.event.inputs.version, 'b') }} name: Create Stable Release uses: actions/create-release@v1 @@ -43,6 +48,7 @@ jobs: release_name: ${{ github.event.inputs.version }} body: 'See https://esphome.io/changelog/index.html' prerelease: false + commitish: ${{ steps.commit_version.outputs.commit_sha }} deploy-community-addons: