Skip to content

revert back to using targetRun parameter #2

revert back to using targetRun parameter

revert back to using targetRun parameter #2

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm package
- uses: actions/github-script@v5
id: target
with:
result-encoding: string
script: |
return (Math.random() > 0.5) ? "59b7802" : "34f93ed"
- uses: ./dist
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
image-directory-path: "./images"
target-hash: "${{ steps.target.outputs.result }}"