Skip to content

Commit

Permalink
Update ubuntu-release-date.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leinardi authored Sep 1, 2023
1 parent 64b5c6c commit a064bae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ubuntu-release-date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Validate input
uses: mathiasvr/command-output@34408ea3d0528273faff3d9e201761ae96106cd0
id: validate
run: echo "date=$(date -d "${{ github.event.inputs.releaseDate }}" "+%Y-%m-%d)" >> "$GITHUB_OUTPUT"
with:
run: date -d "${{ github.event.inputs.releaseDate }}" "+%Y-%m-%d"

- name: Install jo
run: sudo apt-get install -y jo

- name: Create JSON File
env:
RELEASE_DATE: ${{ steps.validate.outputs.date }}
RELEASE_DATE: ${{ steps.validate.outputs.stdout }}
run: jo releaseDate=$RELEASE_DATE > releaseDate.json

- name: Setup Pages
Expand Down

0 comments on commit a064bae

Please sign in to comment.