-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ name: Manually Attach Artifacts ( If the automation fails ) | |
run-name: Manually Attach Artifacts against ${{ github.event.inputs.tag }} | ||
|
||
on: | ||
repository_dispatch: | ||
types: [attach-artifacts] | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
|
@@ -19,6 +21,10 @@ jobs: | |
with: | ||
node-version: 20.x | ||
|
||
- name: Get previous tag | ||
id: previoustag | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
|
||
# Sanity check to ensure that release tags don't start with a 'v' version prefix but adhere to the X.Y.Z format | ||
- name: Check for Tag name Format | ||
# https://github.com/orgs/community/discussions/25017 | ||
|
@@ -30,7 +36,7 @@ jobs: | |
- name: Install package | ||
run: | | ||
export npm_config_prefix=$(pwd)/package | ||
npm install -g homebridge-config-ui-x@${{ github.event.inputs.tag }} | ||
npm install -g homebridge-config-ui-x@$${{ needs.analyze-tags.outputs.previous-tag }} | ||
- name: Remove invalid node-pty node-gyp run | ||
run: | | ||
|
@@ -39,11 +45,11 @@ jobs: | |
- name: Create Bundle | ||
run: | | ||
tar -C $(pwd)/package --owner=0 --group=0 --format=posix -czvf homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz . | ||
shasum -a 256 homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz > SHASUMS256.txt | ||
shasum -a 256 homebridge-config-ui-x-${{ needs.analyze-tags.outputs.previous-tag }}.tar.gz > SHASUMS256.txt | ||
- name: Attach Bundle | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz;SHASUMS256.txt' | ||
files: 'homebridge-config-ui-x-${{ needs.analyze-tags.outputs.previous-tag }}.tar.gz;SHASUMS256.txt' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ github.event.inputs.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters