Skip to content

Commit

Permalink
Explicit string equality check in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Nov 9, 2023
1 parent 1fbae88 commit a666063
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
dry-run: false

- name: If publish 'edgedb'
if: steps.publish_driver.outputs.type
if: steps.publish_driver.outputs.type != ''
run: |
echo "Published ${{ steps.publish_driver.outputs.type }} version: ${{ steps.publish_driver.outputs.version }}"
- name: If 'edgedb' version unchanged
if: !steps.publish_driver.outputs.type
if: steps.publish_driver.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
Expand All @@ -76,7 +76,7 @@ jobs:
}
- name: Create 'edgedb' Release
if: steps.publish_driver.outputs.type
if: steps.publish_driver.outputs.type != ''
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -102,12 +102,12 @@ jobs:
dry-run: false

- name: If publish '@edgedb/generate'
if: steps.publish_generate.outputs.type
if: steps.publish_generate.outputs.type != ''
run: |
echo "Published ${{ steps.publish_generate.outputs.type }} version: ${{ steps.publish_generate.outputs.version }}"
- name: If '@edgedb/generate' version unchanged
if: !steps.publish_generate.outputs.type
if: steps.publish_driver.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
Expand All @@ -128,7 +128,7 @@ jobs:
}
- name: Create '@edgedb/generate' Release
if: steps.publish_generate.outputs.type
if: steps.publish_generate.outputs.type != ''
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -154,12 +154,12 @@ jobs:
dry-run: false

- name: If publish '@edgedb/auth-core'
if: steps.publish_auth_core.outputs.type
if: steps.publish_auth_core.outputs.type != ''
run: |
echo "Published ${{ steps.publish_auth_core.outputs.type }} version: ${{ steps.publish_auth_core.outputs.version }}"
- name: If '@edgedb/auth-core' version unchanged
if: !steps.publish_auth_core.outputs.type
if: steps.publish_driver.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
Expand All @@ -180,7 +180,7 @@ jobs:
}
- name: Create '@edgedb/auth-core' Release
if: steps.publish_auth_core.outputs.type
if: steps.publish_auth_core.outputs.type != ''
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -206,12 +206,12 @@ jobs:
dry-run: false

- name: If publish '@edgedb/auth-nextjs'
if: steps.publish_auth_nextjs.outputs.type
if: steps.publish_auth_nextjs.outputs.type != ''
run: |
echo "Published ${{ steps.publish_auth_nextjs.outputs.type }} version: ${{ steps.publish_auth_nextjs.outputs.version }}"
- name: If '@edgedb/auth-nextjs' version unchanged
if: !steps.publish_auth_nextjs.outputs.type
if: steps.publish_driver.outputs.type == ''
run: |
echo "Version in package.json has not changed. Skipping."
Expand All @@ -232,7 +232,7 @@ jobs:
}
- name: Create '@edgedb/auth-nextjs' Release
if: steps.publish_auth_nextjs.outputs.type
if: steps.publish_auth_nextjs.outputs.type != ''
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit a666063

Please sign in to comment.