diff --git a/.github/templates/agenda.md b/.github/templates/agenda.md new file mode 100644 index 0000000..34481a6 --- /dev/null +++ b/.github/templates/agenda.md @@ -0,0 +1,15 @@ + This discussion is about a meeting of the OpenAPI Overlays group. + We meet on alternate Tuesdays at 08:00 Pacific time, and this is a public meeting. + + + + Meeting link: + + + + This meeting is covered by the [OpenAPI Initiative Code of Conduct](https://github.com/OAI/Arazzo-Specification/?tab=coc-ov-file#readme). + + + + Add comments to this discussion to add items to the agenda for the meeting. + diff --git a/.github/workflows/agenda.yaml b/.github/workflows/agenda.yaml new file mode 100644 index 0000000..5922850 --- /dev/null +++ b/.github/workflows/agenda.yaml @@ -0,0 +1,39 @@ +name: Create meeting template + +on: + workflow_dispatch: {} + +jobs: + create-discussion: + permissions: + discussions: write + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Get agenda text from template + id: get-agenda + run: | + echo 'AGENDA<> $GITHUB_ENV + cat .github/templates/agenda.md >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV + - name: Create discussion with agenda + id: create-repository-discussion + uses: octokit/graphql-action@v2.x + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + variables: + | + body: "${{ env.AGENDA }}" + title: "Overlays Meeting" + repositoryId: 'MDEwOlJlcG9zaXRvcnkzNTk4NjU5MDI=' + categoryId: 'DIC_kwDOFXMeLs4COVB8' + query: | + mutation CreateDiscussionMutation ($title: String!, $body: String!, $repositoryId: ID!, $categoryId: ID!) { + createDiscussion(input: { title: $title, body: $body, repositoryId: $repositoryId, categoryId: $categoryId }) { + discussion { + title + } + } + } +