Skip to content

[DE][Loslegen] Die Installation von Smartstore #1871

[DE][Loslegen] Die Installation von Smartstore

[DE][Loslegen] Die Installation von Smartstore #1871

name: Sync docs issue to project
on:
issues:
types: [opened, edited, labeled, unlabeled, reopened]
workflow_dispatch:
inputs:
issue_number:
description: Issue number to synchronize
required: true
type: number
permissions:
contents: read
issues: read
concurrency:
group: docs-project-sync-${{ github.event.issue.number || inputs.issue_number }}
cancel-in-progress: true
jobs:
sync:
if: github.event_name == 'workflow_dispatch' || contains(github.event.issue.labels.*.name, 'docs-overhaul')
runs-on: ubuntu-latest
env:
ISSUE_NUMBER: ${{ inputs.issue_number || github.event.issue.number }}
PROJECT_ORGANIZATION: smartstore
PROJECT_NUMBER: "2"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Test metadata parser
run: node --test .github/scripts/sync-docs-project.test.js
- name: Allow label changes to settle
if: github.event_name == 'issues'
run: sleep 2
- name: Synchronize project fields
uses: actions/github-script@v7
with:
github-token: ${{ secrets.PROJECTS_TOKEN }}
script: |
const sync = require("./.github/scripts/sync-docs-project.js");
await sync.run({
github,
context,
core,
issueNumber: Number(process.env.ISSUE_NUMBER),
organization: process.env.PROJECT_ORGANIZATION,
projectNumber: Number(process.env.PROJECT_NUMBER),
});