From 12c984366f4e4c1dca3161a60b5920ceba6566b1 Mon Sep 17 00:00:00 2001 From: Ryan Pope Date: Tue, 25 Jun 2024 14:41:08 -0400 Subject: [PATCH] add docs and notices action --- .github/workflows/update-docs-and-notices.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/update-docs-and-notices.yml diff --git a/.github/workflows/update-docs-and-notices.yml b/.github/workflows/update-docs-and-notices.yml new file mode 100644 index 0000000..11add95 --- /dev/null +++ b/.github/workflows/update-docs-and-notices.yml @@ -0,0 +1,26 @@ +# cannot use the default workflow (https://github.com/yext/slapshot-reusable-workflows) +# because of the monorepo structure +name: Check and Update Repo's documenation and third party notices + +on: pull_request + +jobs: + update-docs-and-third-party-notices: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }} + - uses: actions/setup-node@v3 + with: + node-version: 16.x + - run: npm ci --ignore-scripts + - run: npm run build + - name: Update Documentation + uses: EndBug/add-and-commit@v9 + with: + message: "Automated update to repo's documentation and third party notices from github action" + add: '**/*.md **/THIRD-PARTY-NOTICES' + push: true + default_author: github_actions \ No newline at end of file