From 5633cac7765782467c15bd6ed6563a23a80d08ad Mon Sep 17 00:00:00 2001 From: Nate Anderson Date: Fri, 25 Aug 2023 15:17:48 -0700 Subject: [PATCH] fix: check the correct release-please outputs when releasing (#72) * fix: check the correct release-please outputs when releasing Prepend the path onto the release-please action outputs. When the path is specified in the release-please action, it adds it to all the outputs so projects at different paths can be differentiated. --- .github/workflows/on-push-to-main-branch.yml | 6 +++--- examples/doc_examples.exs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/on-push-to-main-branch.yml b/.github/workflows/on-push-to-main-branch.yml index 09755b9..e2b3787 100644 --- a/.github/workflows/on-push-to-main-branch.yml +++ b/.github/workflows/on-push-to-main-branch.yml @@ -34,14 +34,14 @@ jobs: - name: Publish test run: | - echo "Published version: ${{ steps.release.outputs.tag_name }}" - if: ${{ steps.release.outputs.release_created }} + echo "Published version: ${{ steps.release.outputs.src--tag_name }}" + if: ${{ steps.release.outputs.src--release_created }} # - name: Publish to hex -# if: ${{ steps.release.outputs.release_created }} # env: # HEX_API_KEY: ${{ secrets.ELIXIR_HEX_PACKAGE_PUBLISH_API_KEY }} # run: | # pushd src # mix hex.publish --yes # popd +# if: ${{ steps.release.outputs.src--release_created }} diff --git a/examples/doc_examples.exs b/examples/doc_examples.exs index df7abdd..bd97747 100644 --- a/examples/doc_examples.exs +++ b/examples/doc_examples.exs @@ -414,13 +414,13 @@ Examples.DocExamples.example_API_CredentialProviderFromString() client = Examples.DocExamples.example_API_InstantiateCacheClient() -Examples.DocExamples.example_API_ErrorHandlingHitMiss(client) -Examples.DocExamples.example_API_ErrorHandlingSuccess(client) - Examples.DocExamples.example_API_CreateCache(client) Examples.DocExamples.example_API_DeleteCache(client) Examples.DocExamples.example_API_CreateCache(client) +Examples.DocExamples.example_API_ErrorHandlingHitMiss(client) +Examples.DocExamples.example_API_ErrorHandlingSuccess(client) + Examples.DocExamples.example_API_ListCaches(client) Examples.DocExamples.example_API_Set(client) Examples.DocExamples.example_API_Get(client)