From 3f263a2fde4feb54c6329f9dd3ab586b1d8934b8 Mon Sep 17 00:00:00 2001 From: Roxana Meixner Date: Tue, 20 Aug 2024 11:14:31 +0200 Subject: [PATCH 1/3] add: workflow for automated license header update --- .github/workflows/update-license-header.yml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update-license-header.yml diff --git a/.github/workflows/update-license-header.yml b/.github/workflows/update-license-header.yml new file mode 100644 index 0000000..0241fdb --- /dev/null +++ b/.github/workflows/update-license-header.yml @@ -0,0 +1,24 @@ +name: Update License Headers + +on: + workflow_dispatch: + schedule: + - cron: "0 1 * * 1" # At 01:00 on Mondays + +jobs: + update-header: + name: Update headers + runs-on: "ubuntu-latest" + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - name: Run update header + uses: greenbone/actions/update-header@v3 + with: + github-user: ${{ secrets.GREENBONE_BOT }} + github-user-mail: ${{ secrets.GREENBONE_BOT_MAIL }} + github-user-token: ${{ secrets.GREENBONE_BOT_TOKEN }} + directories: auth client + license-type: "AGPL-3.0-or-later" + target: main From a44df58c5367709157ec2ac1a5b4a84e86a35674 Mon Sep 17 00:00:00 2001 From: Roxana Meixner Date: Tue, 20 Aug 2024 16:27:36 +0200 Subject: [PATCH 2/3] run Update License Headers workflow on PR for testing --- .github/workflows/update-license-header.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-license-header.yml b/.github/workflows/update-license-header.yml index 0241fdb..3ca2d1b 100644 --- a/.github/workflows/update-license-header.yml +++ b/.github/workflows/update-license-header.yml @@ -1,6 +1,7 @@ name: Update License Headers on: + pull_request: workflow_dispatch: schedule: - cron: "0 1 * * 1" # At 01:00 on Mondays From d7b1e3a1863405c250ebedb047c09edb7fe77dcd Mon Sep 17 00:00:00 2001 From: Roxana Meixner Date: Tue, 20 Aug 2024 16:51:10 +0200 Subject: [PATCH 3/3] Revert "run Update License Headers workflow on PR for testing" This reverts commit a44df58c5367709157ec2ac1a5b4a84e86a35674. --- .github/workflows/update-license-header.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update-license-header.yml b/.github/workflows/update-license-header.yml index 3ca2d1b..0241fdb 100644 --- a/.github/workflows/update-license-header.yml +++ b/.github/workflows/update-license-header.yml @@ -1,7 +1,6 @@ name: Update License Headers on: - pull_request: workflow_dispatch: schedule: - cron: "0 1 * * 1" # At 01:00 on Mondays