Skip to content

Commit

Permalink
Update merge_jsons.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKarlas authored Apr 23, 2024
1 parent cd04629 commit fa2d106
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/merge_jsons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
sudo apt-get install jq
- name: Merge jsons into ExpectedStateOfAdmins.json
run: jq -s '. | map(.)' -c ./ExpectedStateOfAdmins/*.json > ExpectedStateOfAdmins.json
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- name: Set current date as variable
id: set-time-now
run: echo "TIME_NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> "$GITHUB_OUTPUT"
- name: Publish ExpectedStateOfAdmins.json as release
uses: softprops/action-gh-release@v2
if: github.ref == 'refs/heads/main'
with:
files: Release.txt
tag_name: $NOW
tag_name: ${{ steps.set-time-now.outputs.TIME_NOW }}

0 comments on commit fa2d106

Please sign in to comment.