From abbb0ef32ad3406d884d35ddf8c7d281c7f6be30 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Thu, 24 Jun 2021 12:12:47 -0500 Subject: [PATCH] Cannot use repo files nor dependencies without actually having them first =) (#20135) --- .github/workflows/open-enterprise-issue.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/open-enterprise-issue.yml b/.github/workflows/open-enterprise-issue.yml index 5dfb0850cf..c5ffa58cb1 100644 --- a/.github/workflows/open-enterprise-issue.yml +++ b/.github/workflows/open-enterprise-issue.yml @@ -14,6 +14,12 @@ jobs: if: github.repository == 'github/docs-internal' runs-on: ubuntu-latest steps: + - name: Checkout repository code + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + + - name: Install dependencies + run: npm ci + - name: Check for existing release or deprecation issues id: existingIssue run: | @@ -21,17 +27,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f - if: steps.existingIssue.outputs.deprecationIssue == 'false' || steps.existingIssue.outputs.releaseIssue == 'false' - - - name: npm ci - if: steps.existingIssue.outputs.deprecationIssue == 'false' || steps.existingIssue.outputs.releaseIssue == 'false' - run: npm ci - - - name: npm run build - if: steps.existingIssue.outputs.deprecationIssue == 'false' || steps.existingIssue.outputs.releaseIssue == 'false' - run: npm run build - - name: Update enterprise dates if: steps.existingIssue.outputs.deprecationIssue == 'false' || steps.existingIssue.outputs.releaseIssue == 'false' run: | @@ -43,6 +38,7 @@ jobs: .github/actions-scripts/create-enterprise-issue.js release env: GITHUB_TOKEN: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }} + - name: Create an enterprise deprecation issue if: steps.existingIssue.outputs.deprecationIssue == 'false' run: |