.github: use create-pull-request@v3 to fix set-env issues

Github Actions for Rust started failing with following errors:

```
Error: Unable to process command '::set-env name=PULL_REQUEST_NUMBER::718' successfully.
Error: The `set-env` command is disabled. Please upgrade to using
Environment Files or opt into unsecure command execution by setting the
`ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For
more information see:
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
```

It happens because we have used peter-evans/create-pull-request@v2,
which did not have a bug fix for the set-env issue.
The bug was fixed in create-pull-request
[v3.4.1](https://github.com/peter-evans/create-pull-request/releases/tag/v3.4.1).
So we just need to update the version to `v3`, which already includes
v3.4.1.
This commit is contained in:
Dongsu Park 2020-12-01 10:25:24 +01:00
parent 6d7d458120
commit ed8e99c33b
9 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ jobs:
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }} PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
run: .github/workflows/containerd-apply-patch.sh run: .github/workflows/containerd-apply-patch.sh
- name: Create pull request for main - name: Create pull request for main
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -33,7 +33,7 @@ jobs:
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }} PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
run: .github/workflows/docker-apply-patch.sh run: .github/workflows/docker-apply-patch.sh
- name: Create pull request for main - name: Create pull request for main
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -32,7 +32,7 @@ jobs:
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }} VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
run: .github/workflows/go-apply-patch.sh run: .github/workflows/go-apply-patch.sh
- name: Create pull request for main - name: Create pull request for main
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -34,7 +34,7 @@ jobs:
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAINTENANCE }} VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAINTENANCE }}
run: .github/workflows/kernel-apply-patch.sh run: .github/workflows/kernel-apply-patch.sh
- name: Create pull request for maintenance branch - name: Create pull request for maintenance branch
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-maintenance.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-maintenance.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -34,7 +34,7 @@ jobs:
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAINTENANCE }} VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAINTENANCE }}
run: .github/workflows/kernel-apply-patch.sh run: .github/workflows/kernel-apply-patch.sh
- name: Create pull request for maintenance branch - name: Create pull request for maintenance branch
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-maintenance.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-maintenance.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -32,7 +32,7 @@ jobs:
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }} VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAIN }}
run: .github/workflows/kernel-apply-patch.sh run: .github/workflows/kernel-apply-patch.sh
- name: Create pull request for main - name: Create pull request for main
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -34,7 +34,7 @@ jobs:
VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAINTENANCE }} VERSION_NEW: ${{ steps.fetch-latest-release.outputs.VERSION_MAINTENANCE }}
run: .github/workflows/kernel-apply-patch.sh run: .github/workflows/kernel-apply-patch.sh
- name: Create pull request for maintenance branch - name: Create pull request for maintenance branch
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-maintenance.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-maintenance.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -37,7 +37,7 @@ jobs:
PATH: ${{ steps.setup-flatcar-sdk.outputs.path }} PATH: ${{ steps.setup-flatcar-sdk.outputs.path }}
run: .github/workflows/runc-apply-patch.sh run: .github/workflows/runc-apply-patch.sh
- name: Create pull request for main - name: Create pull request for main
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -31,7 +31,7 @@ jobs:
run: .github/workflows/rust-apply-patch.sh run: .github/workflows/rust-apply-patch.sh
- name: Create pull request for main - name: Create pull request for main
id: create-pull-request id: create-pull-request
uses: peter-evans/create-pull-request@v2 uses: peter-evans/create-pull-request@v3
if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1 if: steps.apply-patch-main.outputs.UPDATE_NEEDED == 1
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}