Skip to content

Commit

Permalink
Add bump on release (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Dec 23, 2020
1 parent 5995d4a commit 96ec2e4
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ReleaseActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,40 @@ jobs:
uses: Ilshidur/[email protected]
with:
args: "New version of HACS frontend are now pushed to [PyPi](https://pypi.org/project/hacs-frontend)."
bump:
runs-on: ubuntu-latest
needs: deploy
name: Bump hacs/integration
steps:
- name: Initialize git
uses: home-assistant/actions/helpers/git-init@master
with:
name: ${{ secrets.GIT_NAME }}
email: ${{ secrets.GIT_EMAIL }}
token: ${{ secrets.GIT_TOKEN }}

- name: Clone hacs/integration
run: git clone --depth 1 https://github.com/hacs/integration.git /tmp/integration

- name: Bump version
run: |
cd /tmp/integration
make bump-frontend
- name: "Set version number"
id: version
run: |
version=${{ github.ref }}
echo "::set-output name=version::${version##*/}"
- name: Create PR
uses: actions/github-script@v3
with:
github-token: ${{secrets.GIT_TOKEN}}
script: |
github.issues.createComment({
owner: "hacs",
repo: "integration",
head: 'frontend/${{ steps.version.outputs.version }}',
base: 'main'
})

0 comments on commit 96ec2e4

Please sign in to comment.