Skip to content

Update merge_jsons.yml #4

Update merge_jsons.yml

Update merge_jsons.yml #4

Workflow file for this run

name: Merging countries jsons
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install jq tool
run: |
sudo apt-get update
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: Publish ExpectedStateOfAdmins.json as release
uses: softprops/action-gh-release@v2
if: github.ref == 'refs/heads/main'
with:
files: Release.txt
tag_name: $NOW