Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 4632465

Browse files
authored
Merge pull request #137 from JuliaReinforcementLearning/norci-patch-1
Update format_pr.yml
2 parents 2c0e248 + 02a139e commit 4632465

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/format_pr.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
name: format-pr
2-
32
on:
43
schedule:
5-
- cron: '0 * * * *'
4+
- cron: '0 0 * * *'
65
jobs:
76
build:
8-
runs-on: ${{ matrix.os }}
9-
strategy:
10-
matrix:
11-
julia-version: [1.3.0]
12-
julia-arch: [x86]
13-
os: [ubuntu-latest]
7+
runs-on: ubuntu-latest
148
steps:
15-
- uses: julia-actions/setup-julia@latest
16-
with:
17-
version: ${{ matrix.julia-version }}
18-
199
- uses: actions/checkout@v2
2010
- name: Install JuliaFormatter and format
2111
run: |
2212
julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
23-
julia -e 'using JuliaFormatter; format(".";verbose=true, always_for_in=true)'
24-
13+
julia -e 'using JuliaFormatter; format(".")'
2514
# https://github.com/marketplace/actions/create-pull-request
15+
# https://github.com/peter-evans/create-pull-request#reference-example
2616
- name: Create Pull Request
27-
uses: peter-evans/create-pull-request@v2
17+
id: cpr
18+
uses: peter-evans/create-pull-request@v3
2819
with:
2920
token: ${{ secrets.GITHUB_TOKEN }}
3021
commit-message: Format .jl files
3122
title: 'Automatic JuliaFormatter.jl run'
3223
branch: auto-juliaformatter-pr
24+
delete-branch: true
3325
labels: formatting, automated pr, no changelog
3426
- name: Check outputs
3527
run: |
36-
echo 'Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}'
37-
echo 'Pull Request Number - ${{ steps.cpr.outputs.pr_number }}'
28+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
29+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

0 commit comments

Comments
 (0)