Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger deployment when the push was the new tag #4212

Merged
merged 5 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Prepare release with Changesets
runs-on: ubuntu-22.04
outputs:
published: ${{ steps.changesets.outputs.published }}
hasChangesets: ${{ steps.changesets.outputs.hasChangesets }}
permissions:
contents: write
pull-requests: write
Expand All @@ -39,7 +39,7 @@ jobs:
release:
name: Deploy and release to sandbox
needs: prepare
if: needs.prepare.outputs.published == 'true'
if: needs.prepare.outputs.hasChangesets == 'false'
runs-on: ubuntu-22.04
env:
API_URI: /graphql/
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/publish-containers.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Publish container image

on:
push:
tags:
# Matches stable and pre-releases
- "[0-9]+.[0-9]+.[0-9]+*"
release:
types: [published]

jobs:
docker:
Expand Down
Loading