Skip to content

Commit

Permalink
allow for tags to start with a v & discord webhook refined
Browse files Browse the repository at this point in the history
- allow for tags to start with a `v`
- combined discord release actions with `attach-artifacts` and `release` actions
  - prevents the discord webhook from triggering before the release is complete and published
  • Loading branch information
donavanbecker committed Apr 26, 2024
1 parent 026cce0 commit c4f3499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/plugins/plugins.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ export class PluginsService {
pluginAction.version !== 'latest'
) {
try {
await this.httpService.head(`https://github.com/homebridge/homebridge-config-ui-x/releases/download/${pluginAction.version}/homebridge-config-ui-x-${pluginAction.version}.tar.gz`).toPromise();
await this.httpService.head(`https://github.com/homebridge/homebridge-config-ui-x/releases/download/v${pluginAction.version}/homebridge-config-ui-x-${pluginAction.version}.tar.gz`).toPromise();
return true;
} catch (e) {
return false;
Expand Down
4 changes: 2 additions & 2 deletions upgrade-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ fi

echo "Downloading SHASUMS256.txt..."
curl -fsSL# -o "$tmp_dir/SHASUMS256.txt" \
https://github.com/homebridge/homebridge-config-ui-x/releases/download/${TARGET_VERSION}/SHASUMS256.txt
https://github.com/homebridge/homebridge-config-ui-x/releases/download/v${TARGET_VERSION}/SHASUMS256.txt
if [ "$?" != "0" ]; then
echo "Failed to download SHASUMS256.txt"
exit 1
fi

echo "Downloading homebridge-config-ui-x-${TARGET_VERSION}.tar.gz..."
curl -fL# -o "$tmp_dir/homebridge-config-ui-x-${TARGET_VERSION}.tar.gz" \
https://github.com/homebridge/homebridge-config-ui-x/releases/download/${TARGET_VERSION}/homebridge-config-ui-x-${TARGET_VERSION}.tar.gz
https://github.com/homebridge/homebridge-config-ui-x/releases/download/v${TARGET_VERSION}/homebridge-config-ui-x-${TARGET_VERSION}.tar.gz
if [ "$?" != "0" ]; then
echo "Failed to download homebridge-config-ui-x-${TARGET_VERSION}.tar.gz"
exit 1
Expand Down

0 comments on commit c4f3499

Please sign in to comment.