Skip to content

Commit

Permalink
fix: publish step should take rockspec inputs (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld authored Feb 7, 2024
1 parent 929253b commit ea11770
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/manual-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build and Test
uses: ./.github/actions/ci

- name: Build documentation
uses: ./.github/actions/build-docs

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ jobs:
ssm_parameter_pairs: '/production/common/releasing/luarocks/token = LUAROCKS_API_TOKEN'
- uses: ./.github/actions/ci
with:
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).server }}
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).server.rockspec }}
- uses: ./.github/actions/publish
name: Publish server package
with:
dry_run: 'false'
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).server }}
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).server.rockspec }}

publish-redis:
permissions: # Needed for access to the LuaRocks token
Expand All @@ -100,9 +100,9 @@ jobs:
ssm_parameter_pairs: '/production/common/releasing/luarocks/token = LUAROCKS_API_TOKEN'
- uses: ./.github/actions/ci
with:
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).redis }}
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).redis.rockspec }}
- uses: ./.github/actions/publish
name: Publish redis package
with:
dry_run: 'false'
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).redis }}
rockspec: ${{ fromJSON(needs.rockspec-info.outputs.info).redis.rockspec }}
2 changes: 1 addition & 1 deletion .github/workflows/rockspec-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Fetch release please manifest
id: manifest
run: |
version=$(jq '."."' < .release-please-manifest.json)
version=$(jq --raw-output '."."' < .release-please-manifest.json)
echo "version=$version" >> $GITHUB_OUTPUT
- name: Construct rockspec package names
id: pkg-info
Expand Down

0 comments on commit ea11770

Please sign in to comment.