Getting the PR_COMMIT_SHA from the GitHub ClientEvent Data
MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -25,14 +25,11 @@ env:
GOOGLE_ZONE: "us-central1-a"
PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
LINODE_API_TOKEN: ${{ secrets.LINODE_API_TOKEN }}
+ PR_COMMIT_SHA: ${{ github.event.client_payload.pull_request.head.sha }}
jobs:
comment-notification:
runs-on: ubuntu-latest
steps:
- - name: Inspect contexts
- run: |
- echo "The github context is:"
- echo "${{ toJson(github) }}"
- name: Create URL to the run output
id: vars
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
@@ -53,10 +50,10 @@ jobs:
clouds: ["DigitalOcean", "Aws", "Azure", "Gcp", "Packet", "Linode", "Cloud"]
languages: ["Cs", "Js", "Ts", "Py", "Fs"]
platform: [ubuntu-latest]
- go-version: [1.13.x]
- node-version: [10.x]
+ go-version: [1.15.x]
+ node-version: [14.x]
python-version: [3.7]
- dotnet-version: ['3.1.100']
+ dotnet-version: [3.1.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}
@@ -129,12 +126,12 @@ jobs:
matrix:
platform: [ubuntu-latest]
yarn-version: [1.13.0]
- node-version: [12.x]
+ node-version: [14.x]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
with:
- ref: "refs/remotes/pull/${{ github.event.client_payload.github.payload.issue.number }}/merge"
+ ref: ${{ env.PR_COMMIT_SHA }}
- name: Setup node
uses: actions/setup-node@v1
with:
@@ -154,10 +151,10 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest]
- go-version: [1.13.x]
- node-version: [10.x]
+ go-version: [1.15.x]
+ node-version: [14.x]
python-version: [3.7]
- dotnet-version: ['3.1.100']
+ dotnet-version: [3.1.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}
@@ -221,10 +218,10 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest]
- go-version: [1.13.x]
- node-version: [10.x]
+ go-version: [1.15.x]
+ node-version: [14.x]
python-version: [3.7]
- dotnet-version: ['3.1.100']
+ dotnet-version: [3.1.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}
@@ -288,10 +285,10 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest]
- go-version: [1.13.x]
- node-version: [10.x]
+ go-version: [1.15.x]
+ node-version: [14.x]
python-version: [3.7]
- dotnet-version: ['3.1.100']
+ dotnet-version: [3.1.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Install DotNet ${{ matrix.dotnet-version }}

Getting the PR_COMMIT_SHA from the GitHub ClientEvent Data