Skip to content

Bump actions/github-script from 6 to 7 #3157

Bump actions/github-script from 6 to 7

Bump actions/github-script from 6 to 7 #3157

Workflow file for this run

# This workflow will build a Java project with Maven
name: Build and Unit tests
on:
push:
branches:
- 'main'
- "[0-9]+.[0-9]+.x"
pull_request:
branches:
- 'main'
- "[0-9]+.[0-9]+.x"
types: [ opened, reopened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Build and run Unit tests
run: mvn install --file pom.xml --no-transfer-progress -Dno-format
- name: Save Build Context
run: echo "$GITHUB_CONTEXT" > target/build-context.json
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Attach Build Output
uses: actions/upload-artifact@v3
with:
name: target
path: |
**/target/
!**/target/**/*.jar