Skip to content

Sellers: Adding 1Weather #168

Sellers: Adding 1Weather

Sellers: Adding 1Weather #168

Workflow file for this run

name: Sellers.json validation
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
verify-json-validation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
path: ads
- name: Validate JSON
id: json-validate
working-directory: ads
run: |
cat sellers.json | jq -e
- name: Update JSON Timestamp
id: json-timestamp
working-directory: ads
run: |
cat sellers.json | jq '.ext.last_updated = (now | todate)' | tee sellers.json
- name: Push Changes to PR
working-directory: ads
run: |
git config user.name github-actions
git config user.email [email protected]
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Update sellers.json timestamp"
git push