Skip to content

Commit

Permalink
use to json
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Nicolle committed Feb 11, 2024
1 parent f7aedd4 commit 8f55b71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ jobs:
- name: Determine Deployment Type
id: deployment_type
run: |
echo "${{ github.event.pull_request.labels.*.name }}"
echo "DEPLOY_ASSETS=${{ contains(github.event.pull_request.labels.*.name, 'deploy:assets') }}" >> $GITHUB_ENV
echo "DEPLOY_SERVER=${{ contains(github.event.pull_request.labels.*.name, 'deploy:server') }}" >> $GITHUB_ENV
echo "DEPLOY_CLIENT=${{ contains(github.event.pull_request.labels.*.name, 'deploy:client') }}" >> $GITHUB_ENV
echo "${{ toJson(github.event.pull_request.labels.*.name) }}"
echo "DEPLOY_ASSETS=${{ contains(toJson(github.event.pull_request.labels.*.name), 'deploy:assets') }}" >> $GITHUB_ENV
echo "DEPLOY_SERVER=${{ contains(toJson(github.event.pull_request.labels.*.name), 'deploy:server') }}" >> $GITHUB_ENV
echo "DEPLOY_CLIENT=${{ contains(toJson(github.event.pull_request.labels.*.name), 'deploy:client') }}" >> $GITHUB_ENV
- name: Deploy
if: github.event_name == 'pull_request'
Expand Down

0 comments on commit 8f55b71

Please sign in to comment.