Skip to content

Commit

Permalink
feat: 인스턴스 시간 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
capDoYeonLee committed Oct 20, 2023
1 parent fea5527 commit 88b4909
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,19 @@ jobs:
sudo docker pull ${{ secrets.DOCKER_REPO }}/ecnv-overflow
docker-compose up -d
docker image prune -f
## time
current-time:
needs: CI-CD
runs-on: ubuntu-latest
steps:
- name: Get Current Time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH:mm:ss
utcOffset: "+09:00" # 기준이 UTC이기 때문에 한국시간인 KST를 맞추기 위해 +9시간 추가

- name: Print Current Time
run: echo "Current Time=${{steps.current-time.outputs.formattedTime}}" # current-time 에서 지정한 포맷대로 현재 시간 출력
shell: bash

0 comments on commit 88b4909

Please sign in to comment.