Skip to content

Dropped Spratly Islands and United States Minor Outlying Islands #10

Dropped Spratly Islands and United States Minor Outlying Islands

Dropped Spratly Islands and United States Minor Outlying Islands #10

Workflow file for this run

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 }}