Skip to content

Commit

Permalink
AT-1426 add workflow for automated license header update (#104)
Browse files Browse the repository at this point in the history
## What

<!--
  Describe what changes are being made, e.g. which feature/bug is being
  developed/fixed in this PR? How did you verify the changes in this PR?
-->

## Why

<!-- Describe why are these changes necessary? -->

## References

<!-- Add identifier for issue tickets, links to other PRs, etc. -->

## Checklist

<!-- Remove this section if not applicable to your changes -->

- [ ] Tests
  • Loading branch information
tmstff authored Sep 3, 2024
2 parents 956d236 + e9a5dd7 commit 254e0f9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-license-header.yml
Original file line number Diff line number Diff line change
@@ -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: pkg
license-type: "AGPL-3.0-or-later"
target: main

0 comments on commit 254e0f9

Please sign in to comment.