Skip to content

Commit

Permalink
remove outputs as it is depcrecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Pari Work Temp committed Aug 15, 2024
1 parent a11d780 commit fd8e7c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,26 @@ jobs:
- name: Set Variables
id: set-vars
run: |
echo "::set-output name=backend_url::${{ github.event.deployment_status.environment_url }}"
echo "::set-output name=PR_NUMBER::$(echo ${{ github.event.deployment_status.environment_url }} | grep -oP '(?<=pr-)\d+')"
echo "::set-output name=REPO_NAME::${{ github.repository }}"
echo "::set-output name=EXPO_NAME::${{ github.repository }}-$(echo ${{ github.event.deployment_status.environment_url }} | grep -oP '(?<=pr-)\d+')"
echo "backend_url=${{ github.event.deployment_status.environment_url }}" >> $GITHUB_ENV
echo "PR_NUMBER=$(echo ${{ github.event.deployment_status.environment_url }} | grep -oP '(?<=pr-)\d+')" >> $GITHUB_ENV
echo "REPO_NAME=${{ github.repository }}" >> $GITHUB_ENV
echo "EXPO_NAME=${{ github.repository }}-$(echo ${{ github.event.deployment_status.environment_url }} | grep -oP '(?<=pr-)\d+')" >> $GITHUB_ENV
- name: 🚀 Publish preview
working-directory: ./my_project/mobile
run: |
eas update --branch=${{ steps.set-vars.outputs.EXPO_NAME }} --non-interactive --auto
eas update --branch=$EXPO_NAME --non-interactive --auto
env:
EXPO_PUBLIC_BACKEND_SERVER_URL: "${{ github.event.deployment_status.environment_url }}"
EXPO_PUBLIC_ROLLBAR_ACCESS_TOKEN: "1a19e5da05b2435b802d5a81aba2bbd7"

- name: Update EAS Config
working-directory: ./my_project/mobile
run: |
jq --arg pr_number "${{ steps.set-vars.outputs.PR_NUMBER }}" '.build["review_" + $pr_number] = {
jq --arg pr_number "$PR_NUMBER" '.build["review_" + $pr_number] = {
"developmentClient": true,
"distribution": "internal",
"channel": "${{ steps.set-vars.outputs.EXPO_NAME }}",
"channel": "$EXPO_NAME",
"env": {
"BACKEND_SERVER_URL": "${{ github.event.deployment_status.environment_url }}",
"ROLLBAR_ACCESS_TOKEN": "1a19e5da05b2435b802d5a81aba2bbd7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const ENV = () => {
}

const Config = { ...ENV() }
<<<<<<< HEAD
export default Config

export const vars = {
Expand All @@ -84,6 +83,3 @@ export const vars = {
rollbarAccessToken,
sentryDSN,
}
=======
export default Config
>>>>>>> main
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
"autoIncrement": true,
"env": {
"BACKEND_SERVER_URL": "<REPLACE_WITH_PRODUCTION_BACKEND_SERVER_URL>",
<<<<<<< HEAD
=======
"BUILD_ENV": "production",
>>>>>>> main
"ROLLBAR_ACCESS_TOKEN": "<REPLACE_WITH_PRODUCTION_ROLLBAR_TOKEN>",
"SENTRY_DSN": "<REPLACE_WITH_PRODUCTION_SENTRY_DSN>"
}
Expand Down

0 comments on commit fd8e7c6

Please sign in to comment.