mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-23 22:32:40 +00:00
chore: merge master to dev
This commit is contained in:
1 file changed
+13
@@ -48,7 +48,19 @@ jobs:
|
||||
key: commit-user-lookup-dummy
|
||||
restore-keys: |
|
||||
commit-user-lookup-
|
||||
# When a release PR is merged, the release is created as draft (no tag yet) until it is published.
|
||||
# In that window release-please cannot find the latest release and generates a changelog containing old commits.
|
||||
- name: Check for unpublished release
|
||||
id: pending
|
||||
run: |
|
||||
VERSION=$(jq -r '."."' z2m/.release-please-manifest.json)
|
||||
if git -C z2m ls-remote --exit-code --tags origin "refs/tags/$VERSION" > /dev/null; then
|
||||
echo "pending=false" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "pending=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
- name: Generate changelog
|
||||
if: steps.pending.outputs.pending == 'false'
|
||||
run: |
|
||||
MASTER_Z2M_VERSION=$(cat z2m-master/package.json | jq -r '.version')
|
||||
MASTER_ZHC_VERSION=$(cat z2m-master/package.json | jq -r '.dependencies."zigbee-herdsman-converters"')
|
||||
@@ -62,6 +74,7 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{secrets.GH_TOKEN}}
|
||||
- name: Update changelog gist
|
||||
if: steps.pending.outputs.pending == 'false'
|
||||
run: |
|
||||
gh gist edit bfd4c3d1725a2cccacc11d6ba51008ba -a changelog.md
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user