Skip to content

Commit

Permalink
Merge pull request #10 from NUT-A/master
Browse files Browse the repository at this point in the history
ci: add manual trigger; fix release org-name
  • Loading branch information
aasseman authored Mar 13, 2023
2 parents 2720af0 + ff7df47 commit 8a0c16b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/actions/calculate_release_versions/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/fetch_latest_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}

0 comments on commit 8a0c16b

Please sign in to comment.