Update Costa Rica.json #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merging countries jsons | |
on: | |
push: | |
paths: | |
- 'ExpectedStateOfAdmins/**' | |
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 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: ExpectedStateOfAdmins.json | |
tag_name: ${{ steps.set-time-now.outputs.TIME_NOW }} |