Skip to content

Instantly share code, notes, and snippets.

@sontek
Created July 25, 2022 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sontek/1c6f6efd37c9aa92dadf3d0bcfe1f472 to your computer and use it in GitHub Desktop.
Save sontek/1c6f6efd37c9aa92dadf3d0bcfe1f472 to your computer and use it in GitHub Desktop.
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d')"
- name: Setting version
run: echo "BUILD_VERSION=${{ steps.date.outputs.date }}.${{ github.run_id }}.${{ github.run_number }}" >> $GITHUB_ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment