Skip to content

Commit

Permalink
chore: add git token
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggling committed Oct 3, 2023
1 parent 9c3425d commit 8cef204
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ jobs:
echo "APP_SERVICE_ACCOUNT_TOKEN=$token" >> $GITHUB_ENV
- name: "Get application information for fusion-project-portal"
id: get_application_info_api
id: get_application_info
uses: equinor/radix-github-actions@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
args: >
get application
-a fusion-project-portal
- name: "Get active deployments"
id: get_active_deployments
id: get_active_deployment
run: |
activeDeploymentApi=$(echo '${{steps.get_application_info_api.outputs.result}}' | jq -r '.environments | .[] | select(.name=="test") | .activeDeployment.name')
activeDeploymentApi=$(echo '${{steps.get_application_info.outputs.result}}' | jq -r '.environments | .[] | select(.name=="test") | .activeDeployment.name')
echo "activeDeploymentApi=$activeDeploymentApi" >> "$GITHUB_OUTPUT"
- name: "Promote fusion-project-portal in Radix from test to feature"
Expand All @@ -62,4 +63,4 @@ jobs:
-f
--from-environment test
--to-environment feature
--deployment ${{ steps.get_active_deployments.outputs.activeDeploymentApi }}
--deployment ${{ steps.get_active_deployment.outputs.activeDeploymentApi }}

0 comments on commit 8cef204

Please sign in to comment.