Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Aug 10, 2023
1 parent ce11258 commit b045298
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions .github/workflows/update-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,31 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ steps.auth-token.outputs.auth-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/cpm https://git.io/cpm
chmod +x $RUNNER_TEMP/cpm
- name: Install Carton::Snapshot
curl -sL -o $RUNNER_TEMP/perl5/bin/cpm https://raw.githubusercontent.com/skaji/cpm/main/cpm
chmod +x $RUNNER_TEMP/perl5/bin/cpm
- name: Install Carton and Carton::Snapshot
run: >
$RUNNER_TEMP/cpm
install
cpm install
Carton
Carton::Snapshot
--resolver metacpan
--without-test
--show-build-log-on-failure
--local-lib=$RUNNER_TEMP/perl5
--local-lib-contained=$RUNNER_TEMP/perl5
- name: Install deps
run: >
perl -I$RUNNER_TEMP/perl5/lib/perl5 $RUNNER_TEMP/cpm
install
cpm install
--cpanfile cpanfile
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Install deps
uses: perl-actions/install-with-cpm@stable
with:
cpanfile: cpanfile
sudo: false
args: >
--resolver metacpan
--show-build-log-on-failure
--local-lib-contained=local
- name: Maybe update cpanfile.snapshot
run: carton
- name: Create Pull Request
Expand Down

0 comments on commit b045298

Please sign in to comment.