Skip to content

chore: add logs

chore: add logs #652

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 9
- run: pnpm i --frozen-lockfile
- 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 }}"