forked from metacpan/metacpan-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from metacpan/master
merge master
- Loading branch information
Showing
30 changed files
with
1,927 additions
and
1,943 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,15 @@ on: | |
jobs: | ||
enable-auto-merge: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.user.login == 'metacpan-bot' | ||
if: github.event.pull_request.user.login == 'metacpan-automation[bot]' | ||
steps: | ||
- uses: alexwilson/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Generate Auth Token | ||
id: auth-token | ||
uses: jamestrousdale/[email protected] | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
- uses: peter-evans/enable-pull-request-automerge@v3 | ||
with: | ||
token: ${{ steps.auth-token.outputs.access-token }} | ||
pull-request-number: ${{ github.event.pull_request.number }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,48 +7,71 @@ jobs: | |
update-dep: | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- name: Generate Auth Token | ||
id: auth-token | ||
uses: jamestrousdale/[email protected] | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
- id: git-user | ||
name: Set up git user | ||
uses: haarg/setup-git-user@v1 | ||
with: | ||
jwt: ${{ steps.auth-token.outputs.jwt }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.METACPAN_BOT_TOKEN }} | ||
token: ${{ steps.auth-token.outputs.access-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 deps | ||
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 cpanm, Carton, and Carton::Snapshot | ||
run: > | ||
$RUNNER_TEMP/cpm | ||
install | ||
--cpanfile cpanfile | ||
--resolver metacpan | ||
cpm install | ||
App::cpanminus | ||
Carton | ||
Carton::Snapshot | ||
--without-test | ||
--show-build-log-on-failure | ||
--local-lib-contained=local | ||
--local-lib-contained=$RUNNER_TEMP/perl5 | ||
- name: Install forced deps | ||
run: > | ||
curl -sL https://cpanmin.us/ | ||
| perl - | ||
cpanm | ||
--cpanfile cpanfile.forced | ||
--showdeps --installdeps | ||
-L local | ||
-q | ||
. | ||
| $RUNNER_TEMP/cpm | ||
install | ||
| cpm install | ||
--without-test | ||
--resolver metacpan | ||
--show-build-log-on-failure | ||
--local-lib-contained=local | ||
--reinstall | ||
- | ||
- name: Install deps | ||
run: > | ||
cpm install | ||
--cpanfile cpanfile | ||
--resolver metacpan | ||
--show-build-log-on-failure | ||
--local-lib-contained=local | ||
- name: Maybe update cpanfile.snapshot | ||
run: perl -Ilocal/lib/perl5 local/bin/carton | ||
run: carton | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.METACPAN_BOT_TOKEN }} | ||
token: ${{ steps.auth-token.outputs.access-token }} | ||
commit-message: Update cpanfile.snapshot | ||
title: Update cpanfile.snapshot | ||
author: MetaCPAN Bot <[email protected]> | ||
committer: MetaCPAN Bot <[email protected]> | ||
author: ${{ steps.git-user.outputs.user-full }} | ||
committer: ${{ steps.git-user.outputs.user-full }} | ||
body: | | ||
[GitHub Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | ||
push-to-fork: metacpan-bot/metacpan-web | ||
branch: update-cpanfile-snapshot |
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
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
Oops, something went wrong.