Skip to content

Update Product Schema #66

Update Product Schema

Update Product Schema #66

name: Update Product Schema
on:
workflow_dispatch:
schedule:
- cron: '0 12 1 * *'
permissions:
contents: read
env:
GIT_AUTHOR_EMAIL: 94923726+googleforcreators-bot@users.noreply.github.com
GIT_AUTHOR_NAME: googleforcreators-bot
GIT_COMMITTER_EMAIL: 94923726+googleforcreators-bot@users.noreply.github.com
GIT_COMMITTER_NAME: googleforcreators-bot
jobs:
update-fonts:
name: Update Product Schema
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
- name: Update Product Schema
run: |
curl -O -f https://raw.githubusercontent.com/ampproject/amphtml/main/examples/amp-story/shopping/product.schema.json
cp product.schema.json packages/e2e-tests/src/specs/editor/shopping/schema.json
mv product.schema.json tests/phpunit/integration/data/schema.json
- name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
with:
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
commit-message: Update Product Schema
title: Update Product Schema
body: |
Fetched the current [product JSON schema](https://github.com/ampproject/amphtml/blob/main/examples/amp-story/shopping/product.schema.json) for `<amp-story-shopping>` to update it in the project.
branch: update/product-schema
labels: Dependencies