Update cpanfile.snapshot #283
Workflow file for this run
This file contains hidden or 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: | |
| schedule: | |
| - cron: '1 15 * * 0' | |
| workflow_dispatch: | |
| jobs: | |
| update-dep: | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| - name: Generate Auth Token | |
| uses: actions/create-github-app-token@v2 | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Set up installation local::lib | |
| run: | | |
| mkdir -p $RUNNER_TEMP/perl5/bin | |
| mkdir -p $RUNNER_TEMP/perl5/lib/perl5 | |
| echo "$RUNNER_TEMP/perl5/bin" >> "$GITHUB_PATH" | |
| echo "PERL5LIB=$RUNNER_TEMP/perl5/lib/perl5" >> "$GITHUB_ENV" | |
| - name: Get cpm | |
| run: | | |
| curl -sL -o $RUNNER_TEMP/perl5/bin/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm | |
| chmod +x $RUNNER_TEMP/perl5/bin/cpm | |
| - name: libcmark-dev | |
| run: sudo apt-get install -y -f --no-install-recommends libcmark-dev | |
| - name: Install cpanm, Carton, and Carton::Snapshot | |
| run: > | |
| cpm install | |
| Carton | |
| Carton::Snapshot | |
| --without-test | |
| --show-build-log-on-failure | |
| --local-lib-contained=$RUNNER_TEMP/perl5 | |
| - name: Get forced prereqs | |
| id: prereqs-forced | |
| uses: perl-actions/get-prereqs@v1 | |
| with: | |
| sources: cpanfile.forced | |
| - name: Install forced deps | |
| run: > | |
| cpm install | |
| --without-test | |
| --resolver metacpan | |
| --show-build-log-on-failure | |
| --local-lib-contained=local | |
| --reinstall | |
| ${{ steps.prereqs-forced.outputs.prereqs }} | |
| - name: Install deps | |
| run: > | |
| cpm install | |
| --cpanfile cpanfile | |
| --resolver metacpan | |
| --show-build-log-on-failure | |
| --local-lib-contained=local | |
| --with-develop | |
| - name: Maybe update cpanfile.snapshot | |
| run: carton | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| commit-message: Update cpanfile.snapshot | |
| title: Update cpanfile.snapshot | |
| sign-commits: true | |
| body: | | |
| [GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
| branch: update-cpanfile-snapshot |