Skip to content

Workflow file for this run

name: Update Commercial Store API
on:
push:
branches:
- 'dx-adhoc/**'
env:
PLUGIN_NAME: SwagCommercial
PLUGIN_URL: gitlab.shopware.com/shopware/6/product/commercial.git
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
vars:
runs-on: ubuntu-22.04
outputs:
PLUGIN_NAME: ${{ env.PLUGIN_NAME }}
PLUGIN_URL: ${{ env.PLUGIN_URL }}
steps:
- run: echo "Exposing env vars"
# This workflow contains a single job called "build"
generate-schema:
uses: shopware/docs-ci/.github/workflows/generate_schema.yml@dx-adhoc/add-workflow-for-dsr
with:
schema_flags: --store-api -b ${{ needs.vars.outputs.PLUGIN_NAME }}
schema_file: ${{ needs.vars.outputs.PLUGIN_NAME }}-storeapi.json
plugin_name: ${{ needs.vars.outputs.PLUGIN_NAME }}
plugin_url: ${{ needs.vars.outputs.PLUGIN_URL }}
secrets: inherit

Check failure on line 29 in .github/workflows/commercial.yml

View workflow run for this annotation

GitHub Actions / Update Commercial Store API

Invalid workflow file

The workflow is not valid. .github/workflows/commercial.yml (Line: 29, Col: 16): Invalid input, secrets is not defined in the referenced workflow. .github/workflows/commercial.yml (Line: 23, Col: 11): Secret DEPLOY_USER is required, but not provided while calling.
open-pr:
name: "Open a pull request"
runs-on: ubuntu-latest
needs: [generate-schema,vars]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: download api schema
uses: actions/download-artifact@v3
with:
name: ${{needs.generate-schema.outputs.api_schema}}
- name: install yq
uses: cachix/install-nix-action@v18
- name: Prettify
run: |
sudo apt-get update
sudo apt-get install -y moreutils
jq . ${{ needs.vars.outputs.PLUGIN_NAME }}-storeapi.json | sponge ${{ needs.vars.outputs.PLUGIN_NAME }}-storeapi.json
- name: Create DSR PR
uses: peter-evans/create-pull-request@v4
with:
add-paths: ${{ needs.vars.outputs.PLUGIN_NAME }}-storeapi.json
author: shopwareBot <[email protected]>
committer: shopwareBot <[email protected]>
assignees: Isengo1989
branch: ${{ needs.vars.outputs.PLUGIN_NAME }}-schema-update
delete-branch: true
title: 'Update ${{ needs.vars.outputs.PLUGIN_NAME }} store API schema'