Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Dec 23, 2020
1 parent 65765a5 commit 3eb538d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 42 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ReleaseActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ jobs:
with:
github-token: ${{secrets.GIT_TOKEN}}
script: |
await github.request('POST /repos/{owner}/{repo}/pulls', {
github.request('POST /repos/{owner}/{repo}/pulls', {
owner: "hacs",
repo: "integration",
title: ${{ steps.info.outputs.title }},
title: "${{ steps.info.outputs.title }}",
head: 'frontend/${{ steps.info.outputs.version }}',
base: 'origin/main'
base: 'main'
})
39 changes: 0 additions & 39 deletions .github/workflows/TestBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,42 +21,3 @@ jobs:
run: script/bootstrap
- name: Build
run: script/build
bump:
runs-on: ubuntu-latest
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: "Set version number"
id: info
run: |
version="20201223162633"
raw=$(\
curl -sSL -f "https://github.com/hacs/frontend/releases/tag/${version}" \
| grep "<li>" \
| grep "</a></li>" \
| grep "user" \
)
user=$(echo "$raw" | cut -d">" -f 5 | cut -d"<" -f 1)
change=$(echo "$raw" | cut -d">" -f 2 | cut -d"(" -f 1)
echo "::set-output name=version::${version}"
echo "::set-output name=title::$change $user"
- name: Create PR
uses: actions/github-script@v3
with:
github-token: ${{secrets.GIT_TOKEN}}
script: |
github.request('POST /repos/{owner}/{repo}/pulls', {
owner: "hacs",
repo: "integration",
title: "${{ steps.info.outputs.title }}",
head: 'frontend/${{ steps.info.outputs.version }}',
base: 'main'
})

0 comments on commit 3eb538d

Please sign in to comment.