From 4ad346dcd8ba5738c239f4d7648343702e360bfe Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Fri, 8 Sep 2023 18:02:39 -0400 Subject: [PATCH 1/3] build(ci): enhances workflows and adds reports favicon --- .github/workflows/PRs.yml | 17 +++++++++++++++ .github/workflows/dispatch-bd-fe--cms.yml | 6 +++--- .github/workflows/dispatch-bd-fe--merge.yml | 21 ------------------- .github/workflows/issues.yml | 18 ++++++++++++++++ ...ef-backstop.yml => test-backstop-refs.yml} | 0 _tf/modules/reports/index.html | 2 +- 6 files changed, 39 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/PRs.yml delete mode 100644 .github/workflows/dispatch-bd-fe--merge.yml create mode 100644 .github/workflows/issues.yml rename .github/workflows/{ref-backstop.yml => test-backstop-refs.yml} (100%) diff --git a/.github/workflows/PRs.yml b/.github/workflows/PRs.yml new file mode 100644 index 000000000..03f4dc09f --- /dev/null +++ b/.github/workflows/PRs.yml @@ -0,0 +1,17 @@ +name: 🤖 PR Assignment + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: "Auto-assign PR" + uses: pozil/auto-assign-issue@v1 + with: + repo-token: ${{ secrets.GH_WORKFLOW_TOKEN }} + assignees: dgrebb diff --git a/.github/workflows/dispatch-bd-fe--cms.yml b/.github/workflows/dispatch-bd-fe--cms.yml index d99e729ae..1dc063e0d 100644 --- a/.github/workflows/dispatch-bd-fe--cms.yml +++ b/.github/workflows/dispatch-bd-fe--cms.yml @@ -14,7 +14,7 @@ jobs: steps: - name: ✓ Approve CMS Dispatch - uses: trstringer/manual-approval@v1 + uses: dgrebb/manual-approval@develop with: secret: ${{ github.TOKEN }} approvers: dgrebb @@ -22,8 +22,8 @@ jobs: issue-title: "Deploying ${{ github.ref_name }} via CMS Dispatch Event" issue-body: "Please approve or deny the deployment of version ${{ github.ref_name }}." exclude-workflow-initiator-as-approver: false - additional-approved-words: "" - additional-denied-words: "" + additional-approved-words: "y, a" + labels: "content-publish" frontend: runs-on: ubuntu-latest diff --git a/.github/workflows/dispatch-bd-fe--merge.yml b/.github/workflows/dispatch-bd-fe--merge.yml deleted file mode 100644 index e6c9b608e..000000000 --- a/.github/workflows/dispatch-bd-fe--merge.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: 🔀 B&D FE Merge - -on: - push: - branches: - - main - - develop - -jobs: - - frontend: - runs-on: ubuntu-latest - - steps: - - - name: Dispatch Frontend - run: | - curl -X POST https://api.github.com/repos/dgrebb/dgrebb.com/actions/workflows/${{ secrets.FRONTEND_WORKFLOW_ID }}/dispatches \ - -H 'Accept: application/vnd.github+json' \ - -H 'Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}' \ - --data '{"ref": "${{ github.ref_name }}"}' diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 000000000..45f1353d1 --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,18 @@ +name: 🤖 Issue Automation + +on: + issues: + types: [opened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: "Auto-Assign Issue" + uses: pozil/auto-assign-issue@v1 + with: + assignees: dgrebb + numOfAssignee: 1 + allowSelfAssign: true diff --git a/.github/workflows/ref-backstop.yml b/.github/workflows/test-backstop-refs.yml similarity index 100% rename from .github/workflows/ref-backstop.yml rename to .github/workflows/test-backstop-refs.yml diff --git a/_tf/modules/reports/index.html b/_tf/modules/reports/index.html index e849c5af8..2f0553447 100644 --- a/_tf/modules/reports/index.html +++ b/_tf/modules/reports/index.html @@ -3,7 +3,7 @@ - + dgrebb.com Reports