Skip to content

Commit

Permalink
fix checkout code
Browse files Browse the repository at this point in the history
  • Loading branch information
huikang committed Aug 22, 2023
1 parent 06606db commit 2f85a48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/nightly-test-integrations-1.16.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
name: Nightly test-integrations 1.16.x

on:
schedule:
# Run nightly at 1AM UTC/9PM EST/6PM PST
- cron: '* 1 * * *'
workflow_dispatch: {}
pull_request:
# schedule:
# # Run nightly at 1AM UTC/9PM EST/6PM PST
# - cron: '* 1 * * *'
# workflow_dispatch: {}

env:
TEST_RESULTS_DIR: /tmp/test-results
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/reusable-dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
branch-name:
required: false
type: string
default: "main"
default: ""
go-arch:
required: false
type: string
Expand All @@ -29,10 +29,14 @@ jobs:
build:
runs-on: ${{ fromJSON(inputs.runs-on) }}
steps:
- name: Checkout code
- name: Checkout code ${{ inputs.branch-name }}
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
ref: ${{ inputs.branch-name }}
if: inputs.branch-name != ''
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
if: inputs.branch-name == ''
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
- name: Setup Git
if: ${{ endsWith(inputs.repository-name, '-enterprise') }}
Expand Down

0 comments on commit 2f85a48

Please sign in to comment.