Skip to content

Bump actions/checkout from 4.1.3 to 4.1.4 (#51) #49

Bump actions/checkout from 4.1.3 to 4.1.4 (#51)

Bump actions/checkout from 4.1.3 to 4.1.4 (#51) #49

Workflow file for this run

name: 02 release
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '.github/workflows'
workflow_dispatch:
jobs:
release:
permissions:
contents: write
id-token: write
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b #v4.1.4
with:
fetch-depth: 0
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
server-id: github
settings-path: ${{ github.workspace }}
- name: Create settings.xml
uses: whelk-io/maven-settings-xml-action@9dc09b23833fa9aa7f27b63db287951856f3433d #v22
with:
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/navikt/xerces-xmlschema-1.1", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]'
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
- name: Configure git user
run: |
git config user.name "GitHub Actions Bot (${{ github.actor }})"
git config user.email "actions@github.com"
- name: Publish
run: |
mvn --batch-mode deploy -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: report to slack
if: always()
uses: navikt/eresept-actions/slack-notify@main
with:
status: "${{ job.status }}"
username: "release ${{ env.appver }}"
icon: ":github:"
title-success: "Successfully released _*${{ github.event.repository.name }}*_"
title-failure: "Release of _*${{ github.event.repository.name }}*_ failed"
title-cancelled: "Release of _*${{ github.event.repository.name }}*_ was cancelled"
webhook: ${{ secrets.SLACK_WEBHOOK }}