summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.generate.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-24 12:00:47 -0400
committerGitHub <noreply@github.com>2023-03-24 16:00:47 +0000
commitde4667febee41284ceddb873d27d7e6cf65a66ff (patch)
tree2e82292c44a1a2d0351aefcc323f7b346f7ead2f /.github/workflows/ci.generate.ts
parent675179a176add68dcd72f386b343c3dba1fe71fe (diff)
chore: fix located_script_name test (#18418)
Closes #18417
Diffstat (limited to '.github/workflows/ci.generate.ts')
-rwxr-xr-x.github/workflows/ci.generate.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 94abe7fe7..92ed6c658 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -149,7 +149,6 @@ function cancelEarlyIfDraftPr(
name: "Cancel if draft PR",
id: "exit_early",
if: "github.event.pull_request.draft == true",
- shell: "bash",
run: [
"GIT_MESSAGE=$(git log --format=%s -n 1 ${{github.event.after}})",
"echo Commit message: $GIT_MESSAGE",
@@ -214,6 +213,12 @@ const ci = {
name: "${{ matrix.job }} ${{ matrix.profile }} ${{ matrix.os }}",
"runs-on": "${{ matrix.runner || matrix.os }}",
"timeout-minutes": 120,
+ defaults: {
+ run: {
+ // GH actions doesn't use `set -e` by default unless you specify bash
+ shell: "bash",
+ },
+ },
strategy: {
matrix: {
include: [
@@ -391,7 +396,6 @@ const ci = {
"github.repository == 'denoland/deno' &&",
"github.ref == 'refs/heads/main'",
].join("\n"),
- shell: "bash",
run: 'echo "DENO_CANARY=true" >> $GITHUB_ENV',
},
{
@@ -400,7 +404,6 @@ const ci = {
},
{
name: "Log versions",
- shell: "bash",
run: [
"python --version",
"rustc --version",
@@ -464,7 +467,6 @@ const ci = {
// identifier '1ecc6299db9ec823' will ever change, but if it does then this
// command must be updated.
name: "Shallow clone crates.io index",
- shell: "bash",
run: [
"if [ ! -d ~/.cargo/registry/index/github.com-1ecc6299db9ec823/.git ]",
"then",
@@ -591,7 +593,6 @@ const ci = {
env: {
CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe",
},
- shell: "bash",
run:
'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/',
},
@@ -634,7 +635,6 @@ const ci = {
name: "Check deno binary",
if:
"matrix.profile == 'release' && startsWith(github.ref, 'refs/tags/')",
- shell: "bash",
run: 'target/release/deno eval "console.log(1+2)" | grep 3',
env: {
NO_COLOR: 1,
@@ -798,13 +798,11 @@ const ci = {
env: {
CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe",
},
- shell: "bash",
run:
'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/',
},
{
name: "Create release notes",
- shell: "bash",
if: [
"matrix.job == 'test' &&",
"matrix.profile == 'release' &&",