From 7fcf7364abd500099bdf9a717e8676f6eab295ca Mon Sep 17 00:00:00 2001 From: Frieda Theodor Automatisierungs-Bot Date: Wed, 28 Jun 2023 14:50:42 +0000 Subject: [PATCH 01/11] Update CHANGELOG --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef5f360..ddbe562 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,14 @@ All notable changes to this project will be documented in this file. -## [Unreleased](https://github.com/figuren-theater/.github/compare/0.1.0...HEAD) +## [Unreleased](https://github.com/figuren-theater/.github/compare/0.1.1...HEAD) + +## [0.1.1](https://github.com/figuren-theater/.github/compare/0.1.0...0.1.1) - 2023-06-28 + +- Establish repo quality standards ([#43](https://github.com/figuren-theater/.github/pull/43)) +- Remove 'exclude-contributors' config, it's not relevant for us ([#41](https://github.com/figuren-theater/.github/pull/41)) +- Prevent'"categories[n].labels" must be a string' error ([#39](https://github.com/figuren-theater/.github/pull/39)) +- Develop ([#38](https://github.com/figuren-theater/.github/pull/38)) ## 0.1.0 - 2023-06-27 From f5a77b81e19aa04f13630147b7738aa3b180700e Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Thu, 29 Jun 2023 21:17:36 +0200 Subject: [PATCH 02/11] Run pagespeed-insights with bot user --- .github/workflows/pagespeed-insights.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pagespeed-insights.yml b/.github/workflows/pagespeed-insights.yml index 446dea0..4c48b79 100644 --- a/.github/workflows/pagespeed-insights.yml +++ b/.github/workflows/pagespeed-insights.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + token: ${{ secrets.BOT_TOKEN }} - name: PageSpeed scores with detailed report including PWA uses: lowlighter/metrics@latest with: From d3604b493a7dca91448e4bf0bad699db7c3d6c96 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 30 Jun 2023 14:38:42 +0200 Subject: [PATCH 03/11] Checkout by bot-user --- .github/workflows/blog-post-workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/blog-post-workflow.yml b/.github/workflows/blog-post-workflow.yml index 66b5e31..149be25 100644 --- a/.github/workflows/blog-post-workflow.yml +++ b/.github/workflows/blog-post-workflow.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + token: ${{ secrets.BOT_TOKEN }} - name: Pull in meta.figuren.theater/feed uses: gautamkrishnar/blog-post-workflow@v1 with: From 225938d39d56819448dcad43b8f97f3a81eeb99e Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 30 Jun 2023 14:50:16 +0200 Subject: [PATCH 04/11] Update pagespeed-insights.yml --- .github/workflows/pagespeed-insights.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pagespeed-insights.yml b/.github/workflows/pagespeed-insights.yml index 4c48b79..8ab5a05 100644 --- a/.github/workflows/pagespeed-insights.yml +++ b/.github/workflows/pagespeed-insights.yml @@ -28,3 +28,5 @@ jobs: plugin_pagespeed_pwa: yes plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }} plugin_pagespeed_url: https://figuren.theater/ + user: figuren-theater-bot + committer_token: ${{ secrets.BOT_TOKEN }} From 0468276d587b13e592b2c0ad66b3782b62ad656d Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 30 Jun 2023 14:51:46 +0200 Subject: [PATCH 05/11] Use checkout actiopn v3 with bot-user --- .github/workflows/manage-labels-across-org.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manage-labels-across-org.yml b/.github/workflows/manage-labels-across-org.yml index a05f0f6..188a81f 100644 --- a/.github/workflows/manage-labels-across-org.yml +++ b/.github/workflows/manage-labels-across-org.yml @@ -10,5 +10,7 @@ jobs: BOT_TOKEN: ${{ secrets.BOT_TOKEN }} name: manage-your-labels steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + token: ${{ secrets.BOT_TOKEN }} - uses: actions-automation/manage-your-labels@main From 82963d5e45011a583ab7c97c436abf75ff2d20fa Mon Sep 17 00:00:00 2001 From: Frieda Theodor Automatisierungs-Bot Date: Fri, 30 Jun 2023 14:47:14 +0000 Subject: [PATCH 06/11] Update CHANGELOG --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddbe562..89546eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,11 @@ All notable changes to this project will be documented in this file. -## [Unreleased](https://github.com/figuren-theater/.github/compare/0.1.1...HEAD) +## [Unreleased](https://github.com/figuren-theater/.github/compare/0.1.2...HEAD) + +## [0.1.2](https://github.com/figuren-theater/.github/compare/0.1.1...0.1.2) - 2023-06-30 + +- Create a nicer README ([#44](https://github.com/figuren-theater/.github/pull/44)) ## [0.1.1](https://github.com/figuren-theater/.github/compare/0.1.0...0.1.1) - 2023-06-28 From 6bd172f39edabfb5bea156dd9075f5bf073a18e7 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 30 Jun 2023 17:14:10 +0200 Subject: [PATCH 07/11] Use: 'Push Protected' GitHub Action to help with required status checks --- .github/workflows/pagespeed-insights.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pagespeed-insights.yml b/.github/workflows/pagespeed-insights.yml index 8ab5a05..f07c400 100644 --- a/.github/workflows/pagespeed-insights.yml +++ b/.github/workflows/pagespeed-insights.yml @@ -30,3 +30,9 @@ jobs: plugin_pagespeed_url: https://figuren.theater/ user: figuren-theater-bot committer_token: ${{ secrets.BOT_TOKEN }} + - name: Push to protected branch + uses: CasperWA/push-protected@v2 + with: + token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} + branch: main + unprotect_reviews: true From 9e2d5cfda18b931f8be6493dccdeb8218ac769b4 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 30 Jun 2023 17:36:10 +0200 Subject: [PATCH 08/11] Create build-test-measure.yml --- .github/workflows/build-test-measure.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/build-test-measure.yml diff --git a/.github/workflows/build-test-measure.yml b/.github/workflows/build-test-measure.yml new file mode 100644 index 0000000..3cbe186 --- /dev/null +++ b/.github/workflows/build-test-measure.yml @@ -0,0 +1,11 @@ +name: Build, test & measure + +on: + workflow_call: + pull_request: + push: + +jobs: + call-workflow-build-test-measure: + uses: figuren-theater/code-quality/.github/workflows/build-test-measure.yml@main + secrets: inherit From beb80c5c70ecab17c3c7f17393fb87861abc7abf Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 30 Jun 2023 17:31:07 +0200 Subject: [PATCH 09/11] Revert last --- .github/workflows/pagespeed-insights.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/pagespeed-insights.yml b/.github/workflows/pagespeed-insights.yml index f07c400..8ab5a05 100644 --- a/.github/workflows/pagespeed-insights.yml +++ b/.github/workflows/pagespeed-insights.yml @@ -30,9 +30,3 @@ jobs: plugin_pagespeed_url: https://figuren.theater/ user: figuren-theater-bot committer_token: ${{ secrets.BOT_TOKEN }} - - name: Push to protected branch - uses: CasperWA/push-protected@v2 - with: - token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} - branch: main - unprotect_reviews: true From 7fa403a6851c20afeed5a93d74c27b952cd9d6f9 Mon Sep 17 00:00:00 2001 From: Frieda Theodor Automatisierungs-Bot <134634486+figuren-theater-bot@users.noreply.github.com> Date: Fri, 30 Jun 2023 19:33:37 +0200 Subject: [PATCH 10/11] Update assets/pagespeed-figuren.theater.svg - [Skip GitHub Action] --- assets/pagespeed-figuren.theater.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/pagespeed-figuren.theater.svg b/assets/pagespeed-figuren.theater.svg index 40bcdf8..83834b2 100644 --- a/assets/pagespeed-figuren.theater.svg +++ b/assets/pagespeed-figuren.theater.svg @@ -28,8 +28,8 @@
- - 95 + + 97 Performance
From 0a5d0bc72b470621210db202663606747159d577 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Wed, 5 Jul 2023 11:38:11 +0200 Subject: [PATCH 11/11] TRY 'Push to protected branch' via PR --- .github/workflows/update-changelog.yml | 38 ++++++++++++++++++-------- 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index ea6eec7..4f9edad 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -33,18 +33,32 @@ jobs: release-notes: ${{ github.event.release.body }} latest-version: ${{ github.event.release.tag_name }} - - name: Commit updated CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 + - uses: EndBug/add-and-commit@v9 with: - branch: ${{ github.event.release.target_commitish }} - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md + add: 'CHANGELOG.md' + message: Update changelog to ${{ github.event.release.tag_name }} + # Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (see the paragraph below for more info) + # Default: true + push: false - # Optional commit user and author settings - # defaults to "github-actions[bot]" - commit_user_name: figuren-theater-bot - # defaults to "41898282+github-actions[bot]@users.noreply.github.com" - commit_user_email: email-roboter@figuren.theater - # defaults to author of the commit that triggered the run - commit_author: Frieda Theodor Automatisierungs-Bot + - name: Push to protected branch + uses: CasperWA/push-protected@v2 + with: + token: ${{ secrets.BOT_TOKEN }} + branch: ${{ github.event.release.target_commitish }} + unprotect_reviews: true + # - name: Commit updated CHANGELOG +# uses: stefanzweifel/git-auto-commit-action@v4 +# with: +# branch: ${{ github.event.release.target_commitish }} +# commit_message: Update CHANGELOG +# file_pattern: CHANGELOG.md +# +# # Optional commit user and author settings +# # defaults to "github-actions[bot]" +# commit_user_name: figuren-theater-bot +# # defaults to "41898282+github-actions[bot]@users.noreply.github.com" +# commit_user_email: email-roboter@figuren.theater +# # defaults to author of the commit that triggered the run +# commit_author: Frieda Theodor Automatisierungs-Bot