Skip to content

Commit

Permalink
Getting the PR_COMMIT_SHA from the GitHub ClientEvent Data
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Nov 10, 2020
1 parent b098e7a commit ac0ef47
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/run-tests-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit ac0ef47

Please sign in to comment.