From 3eb538d637497acfc252227727f2e87e3d20b25f Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Wed, 23 Dec 2020 16:38:59 +0000 Subject: [PATCH] Fix release --- .github/workflows/ReleaseActions.yml | 6 ++--- .github/workflows/TestBuild.yml | 39 ---------------------------- 2 files changed, 3 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ReleaseActions.yml b/.github/workflows/ReleaseActions.yml index 78932397e..58d820db2 100644 --- a/.github/workflows/ReleaseActions.yml +++ b/.github/workflows/ReleaseActions.yml @@ -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' }) diff --git a/.github/workflows/TestBuild.yml b/.github/workflows/TestBuild.yml index 429336afe..40fb52db9 100644 --- a/.github/workflows/TestBuild.yml +++ b/.github/workflows/TestBuild.yml @@ -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 "
  • " \ - | grep "
  • " \ - | 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' - })