diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc55465..3352ab3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: 'Publish' +name: "Publish" on: release: @@ -12,35 +12,41 @@ jobs: name: Publish runs-on: ubuntu-latest steps: - - name: Checkout the repository - uses: actions/checkout@v2 + - name: "Checkout the repository" + uses: actions/checkout@v3 with: ref: main - - name: Setup yq + + - name: "Setup yq" uses: frenck/action-setup-yq@v1 - - name: Update version and changelog + + - name: "Update version and changelog" run: | yq -i '.version = "${{ github.event.release.tag_name }}"' $TARGET/config.yaml echo -e "## What’s changed\n" > $TARGET/CHANGELOG.md jq --raw-output '.release.body // empty' "${{ github.event_path }}" >> $TARGET/CHANGELOG.md - - name: Commit & push changes + + - name: "Commit & push changes" run: | git config user.name github-actions git config user.email github-actions@github.com git add . git commit -m "🎉 Release ${{ github.event.release.tag_name }}" git push - - name: Get addon information and update build args + + - name: "Get addon information and update build args" id: information uses: ./.github/actions/addon-info - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + + - name: "Login to GitHub Container Registry" + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Publish + + - name: "Publish" uses: home-assistant/builder@master with: args: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 335e70a..5c1588e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: 'Test' +name: "Test" on: push: @@ -17,14 +17,17 @@ jobs: name: Test Build runs-on: ubuntu-latest steps: - - name: Checkout the repository - uses: actions/checkout@v2 - - name: Setup yq + - name: "Checkout the repository" + uses: actions/checkout@v3 + + - name: "Setup yq" uses: frenck/action-setup-yq@v1 - - name: Get addon information and update build args + + - name: "Get addon information and update build args" id: information uses: ./.github/actions/addon-info - - name: Test build + + - name: "Test build" uses: home-assistant/builder@master with: args: |