bump 1password gh actions to v2.0.0 #29
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: Graalvm test and build with Gradle | |
on: | |
push: | |
branches: [ main, v*, release/* ] | |
pull_request: | |
branches: [ main, v*, release/* ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] # unsupported by 1password atm https://github.com/1Password/load-secrets-action/issues/46 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Load secrets from 1Password | |
uses: 1Password/[email protected] | |
id: OPassword-credentials | |
with: | |
export-env: true | |
env: | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_GHACTIONS_SA_TOKEN }} | |
GITHUB_TOKEN: op://gh/microfetch_graalvm/credential | |
- name: Set up JDK 17 | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17' | |
distribution: 'graalvm-community' | |
github-token: ${{ steps.OPassword-credentials.outputs.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
native-image-pr-reports: 'true' | |
- name: test and build on ${{ matrix.os }} | |
run: ./gradlew nativeCompile | |
- if: runner.os == 'ubuntu' | |
run: echo -e "#! /usr/bin/env bash \n/home/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch" >> microfetch | |
- if: runner.os == 'ubuntu' | |
uses: charmbracelet/vhs-action@v1 | |
with: | |
path: 'src/docs/example.tape' | |
- if: runner.os == 'ubuntu' | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ steps.OPassword-credentials.outputs.GITHUB_TOKEN }} | |
with: | |
commit_message: Update generated VHS GIF | |
branch: main | |
commit_user_name: vhs-action 📼 | |
commit_user_email: [email protected] | |
commit_author: vhs-action 📼 <[email protected]> | |
file_pattern: '*.gif' |