Skip to content

Commit

Permalink
ci(publish): only run on manual workflow, remove tag check
Browse files Browse the repository at this point in the history
Signed-off-by: Ewan Harris <ewan.harris@okta.com>
  • Loading branch information
ewanharris committed Feb 26, 2024
1 parent 10843c9 commit 6b1199f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Publish Release

on:
pull_request:
types:
- closed
workflow_dispatch:

### TODO: Replace instances of './.github/actions/' with reference to the `dx-sdk-actions` repo is made public and this file is transferred over
Expand Down Expand Up @@ -47,17 +44,6 @@ jobs:
repo_owner: ${{ github.repository_owner }}
repo_name: ${{ github.event.repository.name }}

# Check if the tag already exists
- id: tag_exists
uses: ./.github/actions/tag-exists
with:
tag: ${{ steps.get_version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}

# If the tag already exists, exit with an error
- if: steps.tag_exists.outputs.exists == 'true'
run: exit 1

# Create a release for the tag
- uses: ./.github/actions/release-create
with:
Expand Down

0 comments on commit 6b1199f

Please sign in to comment.