From 77f905ab7d1253ab028afae7d555485c7fb30c75 Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 25 Oct 2022 17:05:21 -0600 Subject: [PATCH] Create addRecords.yml --- .github/workflows/addRecords.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/addRecords.yml diff --git a/.github/workflows/addRecords.yml b/.github/workflows/addRecords.yml new file mode 100644 index 0000000..064a991 --- /dev/null +++ b/.github/workflows/addRecords.yml @@ -0,0 +1,32 @@ +name: Add DNS records +on: + push: + branches: [ main ] + +jobs: + validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v34 + with: + files: | + sub-logs/** + reserved/** + - name: Install modules + if: steps.changed-files.outputs.any_changed == 'true' + run: yarn + - name: Add records + if: steps.changed-files.outputs.any_changed == 'true' + id: tests + run: yarn add-records + env: + FILES: ${{ steps.changed-files.outputs.all_changed_files }} + actions_path: ${{ github.workspace }}