diff --git a/.github/actions/calculate_release_versions/action.yml b/.github/actions/calculate_release_versions/action.yml index 46bac80..d704980 100644 --- a/.github/actions/calculate_release_versions/action.yml +++ b/.github/actions/calculate_release_versions/action.yml @@ -30,7 +30,12 @@ runs: version=$published_version fi - diff_version="$version" + if [ ${{ github.event_name }} = "workflow_dispatch" ]; then + diff_version="" + else + diff_version=$current_version + fi + if [ -z "$version" ]; then echo "::error ::Cannot determine version." diff --git a/.github/workflows/fetch_latest_versions.yml b/.github/workflows/fetch_latest_versions.yml index a0eaee8..f156eb7 100644 --- a/.github/workflows/fetch_latest_versions.yml +++ b/.github/workflows/fetch_latest_versions.yml @@ -40,5 +40,8 @@ jobs: version: ${{ inputs.autoagora-indexer-service-version }} org-name: ${{ steps.to_lowercase.outputs.lowercased }} + - name: Print the repo owner + run: echo "The repo owner is ${{ steps.to_lowercase.outputs.lowercased }}" + - name: Print the unpublished tags run: echo "The unpublished tags are ${{ steps.get-unpublished-tags.outputs.tags }}" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e31bfe6..2365588 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,11 +6,13 @@ on: - master schedule: - cron: '28 * * * *' + workflow_dispatch: jobs: semantic-release: runs-on: ubuntu-latest concurrency: release + if: github.ref == 'refs/heads/master' permissions: contents: write outputs: @@ -65,6 +67,6 @@ jobs: with: indexer-version: ${{ matrix.indexer-version }} version: ${{ needs.semantic-release.outputs.version }} - org-name: ${{ needs.semantic-release.outputs.org-name }}} + org-name: ${{ needs.get-latest-versions.outputs.org-name }} secrets: token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file