name: Open Enterprise release or deprecation issue # **What it does**: Checks if there is an Enterprise release or deprecation upcoming, and if so, opens an issue with the tasks to be completed. # **Why we have it**: GHES releases and deprecations run on a predictable schedule, so we can automate some of the project management aspects. # **Who does it impact**: Docs engineering, docs content. on: workflow_dispatch: schedule: - cron: '20 16 * * 1' # Run every Monday at 16:20 UTC / 8:20 PST permissions: contents: read jobs: open_enterprise_issue: name: Open Enterprise issue if: github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: - name: Checkout repository code uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node-npm-setup - name: Create an enterprise release issue run: npm run create-enterprise-issue -- release env: GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }} - name: Create an enterprise deprecation issue run: npm run create-enterprise-issue -- deprecation env: GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }} - uses: ./.github/actions/slack-alert if: ${{ failure() && github.event_name != 'workflow_dispatch' }} with: slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} - uses: ./.github/actions/create-workflow-failure-issue if: ${{ failure() && github.event_name != 'workflow_dispatch' }} with: token: ${{ secrets.DOCS_BOT_PAT_BASE }}