Skip to content

Commit

Permalink
working on workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Aug 5, 2024
1 parent 9f29b4f commit 8e94200
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,14 @@ jobs:
- name: Calculate SHA256 checksum
id: calculate_checksum
run: |
echo "SHA256=$(sha256sum ./connector-definition/dist/connector-definition.tgz | awk '{ print $1 }')" >> $GITHUB_ENV
SHA256=$(sha256sum ./connector-definition/dist/connector-definition.tgz | awk '{ print $1 }')
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
- name: Get commit hash
id: get_commit_hash
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
run: |
COMMIT_HASH=$(git rev-parse HEAD)
echo "commit_hash=$COMMIT_HASH" >> $GITHUB_OUTPUT
release-connector:
name: Release connector
Expand Down Expand Up @@ -134,9 +137,9 @@ jobs:
jq --arg version "${{ steps.get-version.outputs.tagged_version }}" \
--arg version_tag "v${{ steps.get-version.outputs.tagged_version }}" \
--arg uri "https://github.com/${{ github.repository }}/releases/download/v${{ steps.get-version.outputs.tagged_version }}/connector-definition.tgz" \
--arg checksum "${{ env.SHA256 }}" \
--arg commit_hash "${{ env.COMMIT_HASH }}" \
'.latest_version = $version_tag |
--arg checksum "$SHA256" \
--arg commit_hash "$COMMIT_HASH" \
'.overview.latest_version = $version_tag |
.packages += [{
"version": $version,
"uri": $uri,
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This changelog documents changes between release tags.
## [Unreleased]
Upcoming changes for the next versioned release.

## [0.0.23]
* Attempt to integrate push to ndc-hub workflow

## [0.0.22]
* Attempt to integrate push to ndc-hub workflow

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ndc-turso",
"version": "0.0.22",
"version": "0.0.23",
"main": "index.js",
"author": "Tristen Harr",
"scripts": {
Expand Down

0 comments on commit 8e94200

Please sign in to comment.