Skip to content

Commit

Permalink
update to inputs.version, modify how date is set to env
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelbaker-cisa authored Feb 2, 2024
1 parent 463ae41 commit 244070b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/run_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
name: Build Release

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -22,18 +22,18 @@ jobs:
- name: Build
run: git ls-files | zip LME-${{ inputs.version }}.zip -@

- name: Get current date
id: date
- name: Set current date to env variable
run: |
echo "{date}={$(date + '%Y-%m-%d')}" >> $GITHUB_STATE
echo "date={$(date + '%Y-%m-%d')}" >> $GITHUB_OUTPUT
id: version

- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ inputs.releaseName }}
tag_name: v${{ inputs.version }}
files: LME-${{ steps.tag.outputs.tag }}.zip
files: LME-${{ inputs.version }}.zip
draft: true
generate_release_notes: true
body: "## [${{ steps.tag.outputs.tag }}] - Timberrrrr! - ${{ env.date }}"
body: "## [${{ inputs.version }}] - Timberrrrr! - ${{ steps.version.outputs.date }}"
fail_on_unmatched_files: true

0 comments on commit 244070b

Please sign in to comment.