Skip to content

Merge pull request #88 from iprak/add_run_time_sensors #2

Merge pull request #88 from iprak/add_run_time_sensors

Merge pull request #88 from iprak/add_run_time_sensors #2

name: Maunal release

Check failure on line 1 in .github/workflows/manual_release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/manual_release.yml

Invalid workflow file

(Line: 13, Col: 14): Unrecognized named-value: 'next_tag'. Located at position 1 within expression: next_tag
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create next minor tag
id: next_minor_tag
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git fetch origin --tags --quiet
last_tag=`git describe --tags $(git rev-list --tags --max-count=1)`
echo "Last tag: ${last_tag}";
if [ -z "${last_tag}" ];then
last_tag="${INPUT_PREV_TAG}0.1.0";
echo "Last defaulted to ${last_tag}";
fi
next_tag="${last_tag%.*}.$((${last_tag##*.}+1))"
echo "Next tag: ${next_tag}";
echo "Version: ${{steps.semantic_release_info.outputs.version}}"
sed -i "s/\"version\": \".*\"/\"version\": \"${{steps.semantic_release_info.outputs.version}}\"/g" custom_components/sensi/manifest.json
git add -A
git commit -m "chore: bumping version to ${{next_tag}}"
git tag ${next_tag} -f
git push --tags -f
echo "next_tag=$next_tag" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
tag_name: ${{ steps.next_minor_tag.outputs.next_tag }}
release_name: ${{ steps.next_minor_tag.outputs.next_tag }}
draft: false
prerelease: false
- name: "ZIP the integration directory"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/sensi"
zip sensi.zip -r ./
- name: "Upload the ZIP file to the release"
uses: "softprops/action-gh-release@v2.0.8"
with:
tag_name: ${{ steps.next_minor_tag.outputs.next_tag }}
files: ${{ github.workspace }}/custom_components/sensi/sensi.zip