Skip to content

Commit

Permalink
Actions: Update sellers date
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsantiago committed Feb 20, 2024
1 parent b8a5259 commit d0c63cb
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/validate_json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
path: './'
- run: |
cat sellers.json | jq -e
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

0 comments on commit d0c63cb

Please sign in to comment.