Update Product Schema #56
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: Update Product Schema | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 1 * *' | |
permissions: | |
contents: read | |
env: | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_AUTHOR_NAME: googleforcreators-bot | |
GIT_COMMITTER_EMAIL: [email protected] | |
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@8ca2b8b2ece13480cda6dacd3511b49857a23c09 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- name: Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 | |
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@153407881ec5c347639a548ade7d8ad1d6740e38 | |
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 |