Git/GitHub Github Action 에서 현재 시간 가져오기 $(date) "$GITHUB_OUTPUT" - 반응형 2024-02-09 사진: Unsplash 의 Scott Lord 1. 방법 - name: Get current date id: date run: echo "date=$(date +'%Y-%m-%d-%H-%M-%S')" >> "$GITHUB_OUTPUT" - run: echo ${{ steps.date.outputs.date }} 2. 예시 도커 이미지에 날짜 태그로 붙여서 사용 docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.MAIN_DOCKER_REPONAME }}:${{ steps.date.outputs.date }} 3. 출처 https://stackoverflow.com/questions/60942067/get-current-date-and-time-in-github-workflows Get current date and time in GitHub workflows I have a GitHub workflow for releasing nightly snapshots of the repository. It uses the create-release action. This is how the workflow file looks right now: name: Release Nightly Snapshot on: stackoverflow.com https://hynek.me/til/set-output-deprecation-github-actions/ How to Fix the set-output GitHub Actions Deprecation Warning If you have a GitHub Actions workflow that sets an output using echo ::set-output key=value, you have started to see an unhelpful deprecation warning. Here’s how to fix it. hynek.me 메인 이미지 출처 : 사진: Unsplash의Scott Lord 반응형 공유하기 게시글 관리 구독하기Seemingly Online 저작자표시 비영리 'Git > GitHub' 카테고리의 다른 글 깃허브 ! refs/heads/main:refs/heads/main [remote rejected] (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/github-action.yml` without `workflow` scope) 해결 방법 (0) 2024.01.30 [Github Action] WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. 해결방법 (1) 2024.01.26 [GitHub] 깃허브 조직(Organizations) 계정 생성하는 방법 (0) 2023.12.02 [GitHub] 깃허브 로그인 인증 토큰 발행 방법 (0) 2023.11.13 [GitHub] github action [Failed to create a session. The runner registration has been deleted from the server, please re-configure. 해결방법 (0) 2023.08.21 Contents 당신이 좋아할만한 콘텐츠 깃허브 ! refs/heads/main:refs/heads/main [remote rejected] (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/github-action.yml` without `workflow` scope) 해결 방법 2024.01.30 [Github Action] WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. 해결방법 2024.01.26 [GitHub] 깃허브 조직(Organizations) 계정 생성하는 방법 2023.12.02 [GitHub] 깃허브 로그인 인증 토큰 발행 방법 2023.11.13 댓글 0 + 이전 댓글 더보기