Repository navigation
[DE][Verschiedenes] Troubleshooting #1854
This file contains hidden or 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: 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), | |
| }); |