Update scala-library, scala-reflect to 2.13.12 #106
Workflow file for this run
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
name: Build | |
on: | |
workflow_dispatch: | |
inputs: {} | |
push: | |
branches: [ "develop" ] | |
tags: [ "v**" ] | |
pull_request: | |
branches: [ "develop" ] | |
permissions: | |
contents: read | |
jobs: | |
checksecret: | |
runs-on: ubuntu-latest | |
outputs: | |
HAVE_SECRETS: ${{ steps.checksecret_job.outputs.HAVE_SECRETS }} | |
steps: | |
- id: checksecret_job | |
env: | |
OPENSSL_IV: ${{ secrets.OPENSSL_IV }} | |
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }} | |
run: | | |
echo "HAVE_SECRETS=${{ env.OPENSSL_IV != '' && env.OPENSSL_KEY != '' }}" >> $GITHUB_OUTPUT | |
build: | |
runs-on: ubuntu-latest | |
needs: [ 'checksecret' ] | |
steps: | |
- uses: 7mind/github-env@main | |
with: | |
java-version: 17 | |
- name: Build and Test | |
run: | | |
bash .build.sh build | |
test-scripted: | |
runs-on: ubuntu-latest | |
needs: [ 'checksecret' ] | |
steps: | |
- uses: 7mind/github-env@main | |
with: | |
java-version: 17 | |
- name: Build and Test | |
run: | | |
bash .build.sh scripted | |
publish: | |
runs-on: ubuntu-latest | |
needs: [ 'build', 'test-scripted', 'checksecret'] | |
if: needs.checksecret.outputs.HAVE_SECRETS == 'true' | |
steps: | |
- uses: 7mind/github-env@main | |
with: | |
java-version: 17 | |
- name: Publish | |
env: | |
OPENSSL_IV: ${{ secrets.OPENSSL_IV }} | |
OPENSSL_KEY: ${{ secrets.OPENSSL_KEY }} | |
run: | | |
bash .build.sh secrets publish | |
all-good: | |
runs-on: ubuntu-latest | |
needs: [ 'build', 'test-scripted', 'publish' ] | |
steps: | |
- run: 'echo "No build required"' |