Merge pull request #19 from Shopify/deprecate #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
error: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fake Errored Deploy | |
id: deploy | |
run: echo "ERROR!!" 1>&2 | |
- name: Create GitHub Deployment | |
id: github-deployment-action | |
uses: ./ | |
env: | |
WORKFLOW_CI: true | |
EXPECTED_RESULT: 'failure' | |
with: | |
token: ${{ github.token }} | |
environment: 'preview' | |
preview_url: ${{ steps.deploy.outputs.preview_url }} | |
description: ${{ github.event.head_commit.message }} | |
success: | |
if: always() | |
needs: [error] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fake Successful Deploy | |
id: deploy | |
run: echo "preview_url=https://shopify.dev/hydrogen" >> "$GITHUB_OUTPUT" | |
- name: Create GitHub Deployment | |
id: github-deployment-action | |
env: | |
WORKFLOW_CI: true | |
EXPECTED_RESULT: 'success' | |
uses: ./ | |
with: | |
token: ${{ github.token }} | |
environment: 'preview' | |
preview_url: ${{ steps.deploy.outputs.preview_url }} | |
description: ${{ github.event.head_commit.message }} |