markdownのFencedCodeに対応する #9
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: Update cpanfile.snapshot | |
on: | |
pull_request: | |
paths: | |
- cpanfile | |
- cpanfile.target | |
workflow_dispatch: | |
jobs: | |
update-cpanfile-snapshot: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Check cpanfile.target | |
id: check-cpanfile-target | |
continue-on-error: true | |
run: sha256sum -c cpanfile.target | |
- name: Update cpanfile.snapshot and cpanfile.target | |
if: steps.check-cpanfile-target.outcome == 'failure' | |
run: | | |
docker build . -t perl-app-image --target base | |
docker run --rm -v $(pwd):/usr/src/app perl-app-image bash -c 'carton install' | |
sha256sum cpanfile > cpanfile.target | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_user_name: GitHub Actions | |
commit_user_email: [email protected] | |
commit_message: Update cpanfile.snapshot and cpanfile.target | |
file_pattern: cpanfile.snapshot cpanfile.target cpanfile | |