Skip to content

Commit

Permalink
Fix branch name in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolman committed Sep 19, 2024
1 parent 5700389 commit a764869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
autodeploy:
name: 'Auto deploy'
runs-on: ubuntu-latest
if: "(github.ref == 'refs/heads/wallet' || github.ref == 'refs/heads/main')"
if: "(github.ref == 'refs/heads/studio' || github.ref == 'refs/heads/main')"
needs: [buildAndTest]
outputs:
newTag: ${{ steps.version-bump.outputs.newTag }}
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Set environment based on branch
run: |
if [[ $GITHUB_REF == 'refs/heads/wallet' ]]; then
if [[ $GITHUB_REF == 'refs/heads/studio' ]]; then
echo "S3_URL=s3://dev-wallet.thx.network" >> $GITHUB_ENV
echo "DISTRIBUTION=${{ secrets.CLOUDFRONT_DISTRIBUTION_STUDIO_DEV }}" >> $GITHUB_ENV
echo "BUILD_MODE=dev" >> $GITHUB_ENV
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:

- name: Set DISCORD_WEBHOOK based on branch
run: |
if [[ $GITHUB_REF == 'refs/heads/wallet' ]]; then
if [[ $GITHUB_REF == 'refs/heads/studio' ]]; then
echo "DISCORD_WEBHOOK=${{ secrets.DISCORD_WEBHOOK_DEV }}" >> $GITHUB_ENV
elif [[ $GITHUB_REF == 'refs/heads/main' ]]; then
echo "DISCORD_WEBHOOK=${{ secrets.DISCORD_WEBHOOK_PROD }}" >> $GITHUB_ENV
Expand Down

0 comments on commit a764869

Please sign in to comment.