forked from greenbone/ospd-openvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request greenbone#610 from greenbone/y0urself/workflows-main
[CI][main] Update release workflows, add update header workflow
- Loading branch information
Showing
4 changed files
with
64 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release Python package with pontos | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
build-and-release: | ||
name: Build and release with pontos | ||
# If the label 'make release' is set. If PR is closed because of an merge | ||
if: contains( github.event.pull_request.labels.*.name, 'make release') && github.event.pull_request.merged == true | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Release with release action | ||
uses: greenbone/actions/release-python@v1 | ||
with: | ||
version: 3.8 | ||
conventional-commits: true | ||
github-user: ${{ secrets.GREENBONE_BOT }} | ||
github-user-mail: ${{ secrets.GREENBONE_BOT_MAIL }} | ||
github-user-token: ${{ secrets.GREENBONE_BOT_TOKEN }} | ||
gpg-key: ${{ secrets.GPG_KEY }} | ||
gpg-fingerprint: ${{ secrets.GPG_FINGERPRINT }} | ||
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
strategy: calendar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Update Headers | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 1 1 *' # At 00:00 on day-of-month 1 in January. | ||
|
||
jobs: | ||
update-header: | ||
name: Update headers | ||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Run update header | ||
uses: greenbone/actions/update-header@v1 | ||
with: | ||
github-user: ${{ secrets.GREENBONE_BOT }} | ||
github-user-mail: ${{ secrets.GREENBONE_BOT_MAIL }} | ||
github-user-token: ${{ secrets.GREENBONE_BOT_TOKEN }} | ||
directories: ospd ospd_openvas tests | ||
target: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
commit_types = [ | ||
{ message = "^add", group = "Added"}, | ||
{ message = "^remove", group = "Removed"}, | ||
{ message = "^change", group = "Changed"}, | ||
{ message = "^fix", group = "Bug Fixes"}, | ||
] | ||
|
||
changelog_dir = "changelog" |