Skip to content

Commit

Permalink
Merge #425
Browse files Browse the repository at this point in the history
425: Added formatting for auto-generation r=mattBrzezinski a=mattBrzezinski

I added in auto-formatting for code in #423, this will become problematic going forward when code is auto-generated each evening as you'll need to step through accepting all changes as it is breaking BlueStyle.

This PR address' that by adding in an additional step to the `update_apis.yml` action to automatically format the code before creating the merge request.

Co-authored-by: Matt Brzezinski <[email protected]>
  • Loading branch information
bors[bot] and mattBrzezinski authored Aug 13, 2021
2 parents 81dee55 + 6bebd71 commit 6ce7fe5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update_apis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1]
julia-version: [1]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
Expand All @@ -22,6 +22,10 @@ jobs:
run: julia --project -e 'using AWS; AWS.AWSMetadata.parse_aws_metadata();'
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
- name: FormatCode
run: |
julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
julia -e 'using JuliaFormatter; format(".", BlueStyle(); verbose=true)'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
Expand Down

0 comments on commit 6ce7fe5

Please sign in to comment.