From 0ef6b77475086b51ade174faa38953ebbfc00204 Mon Sep 17 00:00:00 2001 From: mattBrzezinski Date: Tue, 1 Sep 2020 12:37:52 -0500 Subject: [PATCH] Use create-pull-request@v3 (#163) * Use create-pull-request@v3, also sudo to allow writing local files * Fixed GHA for automated API updates * Removed excess with, added indentation * Sans sudo --- .github/workflows/update_apis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_apis.yml b/.github/workflows/update_apis.yml index 9f5ab0734f..fbed3215d6 100644 --- a/.github/workflows/update_apis.yml +++ b/.github/workflows/update_apis.yml @@ -12,14 +12,18 @@ jobs: julia-arch: [x86] os: [ubuntu-latest] steps: + - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@latest with: version: ${{ matrix.julia-version }} + - uses: julia-actions/julia-buildpkg@latest - name: UpdateAPI # Run against the latest version, since everything merged into master will be tagged. - run: julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(url="https://github.com/JuliaCloud/AWS.jl.git", rev="master")); using AWS; AWS.AWSMetadata.parse_aws_metadata();' + run: julia --project -e 'using AWS; AWS.AWSMetadata.parse_aws_metadata();' - name: Create Pull Request - uses: peter-evans/create-pull-request@v2 + uses: peter-evans/create-pull-request@v3 with: - path: "~/.julia/dev/AWS/" - token: ${{ secrets.GITHUB_TOKEN }} + commit-message: AWS API Definitions Updated + reviewers: mattBrzezinski + title: AWS API Definitions Updated + token: ${{ secrets.GITHUB_TOKEN }}