Skip to content

chore(deps): update aquasecurity/trivy-action action to v0.29.0 (#98) #81

chore(deps): update aquasecurity/trivy-action action to v0.29.0 (#98)

chore(deps): update aquasecurity/trivy-action action to v0.29.0 (#98) #81

Workflow file for this run

name: Merge to Main
on:
push:
branches:
- main
paths-ignore:
- ".github/ISSUE_TEMPLATE/*"
- "**.md"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
vars:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
semver: ${{ steps.semver.outputs.version }}
tag: ${{ steps.semver.outputs.tag }}
clean_changelog: ${{ steps.semver.outputs.clean_changelog }}
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
# Get PR number for squash merges to main
- name: PR Number
id: pr
uses: bcgov-nr/[email protected]
- name: Conventional Changelog Update
uses: TriPSs/[email protected]
id: semver
with:
git-branch: refs/heads/${{ github.head_ref }}
git-push: 'false'
skip-commit: 'true'
skip-on-empty: 'false'
skip-version-file: 'true'
certextractor:
name: Promote certextractor
needs: [vars]
runs-on: ubuntu-24.04
steps:
- uses: shrink/actions-docker-registry-tag@v4
with:
registry: ghcr.io
repository: ${{ github.repository }}/certextractor
target: ${{ needs.vars.outputs.semver }}.PR${{ needs.vars.outputs.pr}}
tags: ${{ needs.vars.outputs.semver }}
release-core:
name: Build Core
runs-on: ubuntu-24.04
needs: [vars]
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Removing old core
uses: paulushcgcj/[email protected]
continue-on-error: true
with:
token: ${{ secrets.PAT }}
type: maven
name: ca.bc.gov.nrs-commons.forest-client-core
version: ${{ needs.vars.outputs.semver }}
user: ${{ github.repository_owner }}
- name: Publish Core
uses: paulushcgcj/[email protected]
with:
dir: core
app-version: ${{ needs.vars.outputs.semver }}
extra-params: -DskipTests -Dtests.skip=true
add-sources: true
add-javadoc: true
env:
GITHUB_TOKEN: ${{ github.token }}
release-spring:
name: Build Spring
runs-on: ubuntu-24.04
needs: [vars, release-core]
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Removing old spring
uses: paulushcgcj/[email protected]
continue-on-error: true
with:
token: ${{ secrets.PAT }}
type: maven
name: ca.bc.gov.nrs-commons.forest-client-spring
version: ${{ needs.vars.outputs.semver }}
user: ${{ github.repository_owner }}
- name: Publish Spring
uses: paulushcgcj/[email protected]
with:
dir: spring
app-version: ${{ needs.vars.outputs.semver }}
extra-params: -DskipTests -Dtests.skip=true -Dcore.version=${{ needs.vars.outputs.semver }}
add-sources: true
add-javadoc: true
env:
GITHUB_TOKEN: ${{ github.token }}
tagging:
name: Tagging library
needs: [vars,certextractor,release-core,release-spring]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: "maven"
server-id: "github"
- name: Create Release
uses: softprops/action-gh-release@v2
if: ${{ needs.vars.outputs.tag != '' }}
continue-on-error: true
env:
GITHUB_TOKEN: ${{ github.token }}
with:
token: ${{ github.token }}
tag_name: ${{ needs.vars.outputs.tag }}
name: ${{ needs.vars.outputs.tag }}
body: |
${{ needs.vars.outputs.clean_changelog }}
```
<dependency>
<groupId>ca.bc.gov.nrs-commons</groupId>
<artifactId>forest-client-core</artifactId>
<version>${{ needs.vars.outputs.semver }}</version>
</dependency>
```
```
<dependency>
<groupId>ca.bc.gov.nrs-commons</groupId>
<artifactId>forest-client-spring</artifactId>
<version>${{ needs.vars.outputs.semver }}</version>
</dependency>
```