Skip to content

Commit 3a1640b

Browse files
committed
WIP
1 parent 75d7a14 commit 3a1640b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,8 @@ jobs:
339339
merge-multiple: true
340340
- run: sed -i 's;file="./;file=";g' tmp/rspec/*.xml
341341
- if: github.event_name == 'pull_request'
342-
run: 'echo "DD_GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
343-
344-
'
342+
run: echo "DD_GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
343+
- run: echo $DD_GIT_COMMIT_SHA
345344
- run: datadog-ci junit upload --verbose tmp/rspec/
346345
coverage:
347346
name: upload/coverage

tasks/github.rake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ namespace :github do
318318
{ 'run' => "sed -i 's;file=\"\.\/;file=\";g' tmp/rspec/*.xml" },
319319
{
320320
'if' => "github.event_name == 'pull_request'",
321-
'run' => <<~BASH
322-
echo "DD_GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
323-
BASH
321+
'run' => 'echo "DD_GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV'
322+
},
323+
{
324+
'run' => 'echo $DD_GIT_COMMIT_SHA'
324325
},
325326
{
326327
'run' => 'datadog-ci junit upload --verbose tmp/rspec/'

0 commit comments

Comments
 (0)