Skip to content

Commit 82fd1d4

Browse files
authored
Add Github action release job (#19)
1 parent 1c9a7c3 commit 82fd1d4

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "weekly"
12+
- package-ecosystem: "github-actions" # Also update Github actions
13+
directory: "/"
14+
schedule:
15+
# Check for updates to GitHub Actions every week
16+
interval: "weekly"

.github/workflows/maven-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ on:
1414

1515
jobs:
1616
call-maven-ci:
17-
uses: project-ncl/shared-github-actions/.github/workflows/maven-ci.yml@v0.0.3
17+
uses: project-ncl/shared-github-actions/.github/workflows/maven-ci.yml@v0.0.6
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "0 Central Release Job" # Adding the 0 so that it's on top of the list of github actions
2+
on:
3+
workflow_dispatch: # Manual trigger so you don't release on every push
4+
inputs:
5+
ref_to_release:
6+
description: '[Optional] Branch or commit to release. Default: Github default branch'
7+
required: false
8+
type: string
9+
# default has to be a static string, no variables allowed
10+
default: ''
11+
12+
jobs:
13+
call-release-job:
14+
permissions:
15+
contents: write # needed to push commit and tag back to the repository
16+
uses: project-ncl/shared-github-actions/.github/workflows/maven-release.yml@v0.0.6
17+
with:
18+
ref_to_release: ${{ inputs.ref_to_release }}
19+
secrets: inherit

.github/workflows/maven-snapshot.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66

77
jobs:
88
call-snapshot-job:
9-
uses: project-ncl/shared-github-actions/.github/workflows/maven-snapshot.yml@v0.0.3
9+
uses: project-ncl/shared-github-actions/.github/workflows/maven-snapshot.yml@v0.0.6
1010
with:
1111
project_name: 'project-ncl/bifrost-upload-client'
12-
secrets:
13-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
14-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
12+
secrets: inherit

0 commit comments

Comments
 (0)