Skip to content

Commit

Permalink
Attempt to add DATE_TIME to release name
Browse files Browse the repository at this point in the history
  • Loading branch information
bviggiano committed Jul 23, 2024
1 parent d585958 commit 12ad751
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ jobs:
done
shell: bash

- name: Set datetime
id: set_datetime
run: echo "::set-output name=datetime::$(date +'%Y-%m-%dT%H:%M:%S')"

- name: Create and Upload GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ format('release-{0}-{1}', github.event.push.pushed_at, github.run_number) }}
release_name: Release ${{ format('{0}-{1}', github.event.push.pushed_at, github.run_number) }}
body: "These zip files contain versions of the assignments that are ready to be distributed to students."
tag_name: release-${{ env.DATE_TIME }}-${{ github.run_number }}
release_name: Release ${{ env.DATE_TIME }}-${{ github.run_number }}
body: "The following zip files are the converted versions of the assignments."
draft: false
prerelease: false
files: ./filtered_files/*.zip
Expand Down

0 comments on commit 12ad751

Please sign in to comment.