Skip to content

Commit

Permalink
Config: dev pr workflow 완성
Browse files Browse the repository at this point in the history
디스코드 알림, 환경변수 작성 완료
  • Loading branch information
marinesnow34 authored Oct 14, 2023
1 parent 633f2f4 commit b851093
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/dev_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs: # Job 설정
- name: Install dependencies # 의존 파일 설치
run: npm install

# - name: change env file
# env:
# run: |
# echo PORT=$ > .env
- name: Set .env from secrets
run: |
echo "PORT=${{ secrets.DEV_PORT }}" > .env
echo "WDS_SOCKET_PORT=0" >> .env
echo "NODE_PATH=src/" >> .env
echo "REACT_APP_API_ROOT=${{ secrets.DEV_REACT_APP_API_ROOT }}" >> .env
echo "REACT_APP_HOME_URL=${{ secrets.DEV_REACT_APP_HOME_URL }}" >> .env
- name: cat env file
run: cat .env
Expand All @@ -41,13 +44,13 @@ jobs: # Job 설정
aws s3 cp build.tar.gz s3://$BUCKET_NAME/build.tar.gz \
--endpoint-url $ENDPOINT_URL
# - name: Discordbot alert # 디스코드 알림
# uses: sarisia/[email protected]
# with:
# webhook: ${{ secrets.DISCORD_WEBHOOK }}
# content: ${{ (github.actor == 'marinesnow34' && '<@392607023495118862>') ||
# (github.actor == '1223v' && '<@368775981667844098>') ||
# (github.actor == 'imi21123' && '<@999337351799128115>') ||
# (github.actor == 'marina-yhm' && '<@946431150614794240>') ||
# (github.actor == 'hhhhyelim' && '<@1076887091427946496>') }}
# if: always()
- name: Discordbot alert # 디스코드 알림
uses: sarisia/[email protected]
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
content: ${{ (github.actor == 'marinesnow34' && '<@392607023495118862>') ||
(github.actor == '1223v' && '<@368775981667844098>') ||
(github.actor == 'imi21123' && '<@999337351799128115>') ||
(github.actor == 'marina-yhm' && '<@946431150614794240>') ||
(github.actor == 'hhhhyelim' && '<@1076887091427946496>') }}
if: always()

0 comments on commit b851093

Please sign in to comment.