-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: pin GitHub actions with their SHA-1 instead of their version n…
…umber (#22 * chore: pin GitHub actions with their SHA-1 instead of their version number * Keep versions for jenkins-infra GHA
- Loading branch information
1 parent
d464dba
commit 1883b5d
Showing
2 changed files
with
16 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ on: | |
MAVEN_TOKEN: | ||
required: true | ||
description: Maven token used for deploying the plugin jar to Jenkins Artifactory Repository | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
|
@@ -23,9 +22,8 @@ jobs: | |
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
output_result: true | ||
|
||
- name: Release Drafter | ||
uses: release-drafter/release-drafter@v5 | ||
uses: release-drafter/release-drafter@569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e # v5 | ||
id: draft | ||
if: steps.verify-ci-status.outputs.result == 'success' | ||
with: | ||
|
@@ -34,34 +32,30 @@ jobs: | |
version: next | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check interesting categories | ||
uses: jenkins-infra/[email protected] | ||
id: interesting-categories | ||
if: steps.verify-ci-status.outputs.result == 'success' | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_DRAFT_BODY: ${{ steps.draft.outputs.body }} | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [validate] | ||
if: needs.validate.outputs.should_release == 'true' | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Release | ||
uses: jenkins-infra/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- name: Release | ||
uses: jenkins-infra/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} |
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