Skip to content

Commit

Permalink
ci: use @ instead of / in sed so it can replace urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pchmn committed Aug 4, 2023
1 parent 951c9e6 commit 531a2b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
- name: 🏗 Set nhost urls
working-directory: apps/mobile
run: |
sed -i 's/<NHOST_AUTH_URL_DEV>/${{ secrets.NHOST_AUTH_URL_DEV }}/g' eas.json
sed -i 's/<NHOST_GRAPHQL_URL_DEV>/${{ secrets.NHOST_GRAPHQL_URL_DEV }}/g' eas.json
sed -i 's/<NHOST_STORAGE_URL_DEV>/${{ secrets.NHOST_STORAGE_URL_DEV }}/g' eas.json
sed -i 's/<NHOST_FUNCTIONS_URL_DEV>/${{ secrets.NHOST_FUNCTIONS_URL_DEV }}/g' eas.json
sed -i 's@<NHOST_AUTH_URL_DEV>@${{ secrets.NHOST_AUTH_URL_DEV }}@g' eas.json
sed -i 's@<NHOST_GRAPHQL_URL_DEV>@${{ secrets.NHOST_GRAPHQL_URL_DEV }}@g' eas.json
sed -i 's@<NHOST_STORAGE_URL_DEV>@${{ secrets.NHOST_STORAGE_URL_DEV }}@g' eas.json
sed -i 's@<NHOST_FUNCTIONS_URL_DEV>@${{ secrets.NHOST_FUNCTIONS_URL_DEV }}@g' eas.json
- name: 🔨 EAS build
working-directory: apps/mobile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-mobile-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ jobs:
- name: 🏗 Set nhost urls
working-directory: apps/mobile
run: |
sed -i 's/<NHOST_AUTH_URL_DEV>/${{ secrets.NHOST_AUTH_URL_DEV }}/g' eas.json
sed -i 's/<NHOST_GRAPHQL_URL_DEV>/${{ secrets.NHOST_GRAPHQL_URL_DEV }}/g' eas.json
sed -i 's/<NHOST_STORAGE_URL_DEV>/${{ secrets.NHOST_STORAGE_URL_DEV }}/g' eas.json
sed -i 's/<NHOST_FUNCTIONS_URL_DEV>/${{ secrets.NHOST_FUNCTIONS_URL_DEV }}/g' eas.json
sed -i 's@<NHOST_AUTH_URL_DEV>@${{ secrets.NHOST_AUTH_URL_DEV }}@g' eas.json
sed -i 's@<NHOST_GRAPHQL_URL_DEV>@${{ secrets.NHOST_GRAPHQL_URL_DEV }}@g' eas.json
sed -i 's@<NHOST_STORAGE_URL_DEV>@${{ secrets.NHOST_STORAGE_URL_DEV }}@g' eas.json
sed -i 's@<NHOST_FUNCTIONS_URL_DEV>@${{ secrets.NHOST_FUNCTIONS_URL_DEV }}@g' eas.json
- name: 💬 Get eas update message
id: update-message
Expand Down

0 comments on commit 531a2b7

Please sign in to comment.