Skip to content

Commit

Permalink
Use commit_pr_and_merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Feb 28, 2024
1 parent b8474ee commit 66fd678
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/publish-all-operators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}

- name: Check branch and release type
uses: IABTechLab/uid2-shared-actions/actions/[email protected]
id: checkRelease
uses: IABTechLab/uid2-shared-actions/actions/check_branch_and_release_type@v2
with:
release_type: ${{ inputs.release_type }}

Expand All @@ -37,7 +38,7 @@ jobs:
fetch-depth: 0

- name: Scan vulnerabilities
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2.4.0
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2
with:
scan_severity: HIGH,CRITICAL
failure_severity: CRITICAL
Expand All @@ -57,13 +58,19 @@ jobs:
echo "Version number updated from $current_version to $new_version"
- name: Commit pom.xml and version.json
uses: EndBug/add-and-commit@v9
if: ${{ steps.checkRelease.outputs.is_release != 'true' }}
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@v2
with:
add: 'pom.xml version.json'
author_name: Release Workflow
author_email: [email protected]
message: 'Released ${{ inputs.release_type }} version: ${{ steps.version.outputs.new_version }}'
tag: v${{ steps.version.outputs.new_version }}

- name: Commit pom.xml, version.json and set tag
if: ${{ steps.checkRelease.outputs.is_release == 'true' }}
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@v2
with:
add: 'pom.xml version.json'
message: 'Released ${{ inputs.release_type }} version: ${{ steps.version.outputs.new_version }}'
tag: v${{ steps.version.outputs.new_version }}

buildPublic:
name: Public Operator
Expand Down

0 comments on commit 66fd678

Please sign in to comment.