WIP
Some checks failed
Build homebridge-hue-chase / Version (push) Successful in 5s
continuous-integration/drone/push Build is passing
Build homebridge-hue-chase / Build (push) Successful in 18s
Build homebridge-hue-chase / Publish Latest (push) Failing after 9s
Build homebridge-hue-chase / Deploy (push) Has been skipped

This commit is contained in:
Brandon Watson 2024-06-05 18:25:17 -05:00
parent a9ec8f8403
commit f66bc37d94

View File

@ -21,17 +21,18 @@ jobs:
name: Version
outputs:
version: ${{ steps.get_version.outputs.version }}
commit: ${{ steps.get_commit.outputs.commit }}
commit: ${{ steps.get_version.outputs.commit }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- id: get_version
run: echo version=$(node -p "require('./package.json').version") >> "$GITHUB_OUTPUT"
- id: get_commit
run: echo "commit=$(echo $DRONE_COMMIT | cut -c1-5)" >> "$GITHUB_OUTPUT"
run: |
export version=`node -p "require('./package.json').version"`
export commit=`echo $GITEA_SHA | cut -c1-5`
echo "version=$version" >> "$GITHUB_OUTPUT"
echo "commit=$commit" > "GITHUB_OUTPUT"
publish_tagged:
name: Publish Latest
@ -52,6 +53,7 @@ jobs:
deploy:
runs-on: internal
name: Deploy
needs: publish_tagged
steps:
- name: Set up SSH key