diff --git a/.github/workflows/ci_standalone.yml b/.github/workflows/ci_standalone.yml index 425b8962a..38a0ffda6 100644 --- a/.github/workflows/ci_standalone.yml +++ b/.github/workflows/ci_standalone.yml @@ -26,3 +26,4 @@ jobs: uses: "./.github/workflows/ci_standalone_versioned.yml" with: awx_version: ${{ matrix.awx_version }} + gh_ref: ${{ github.event.pull_request.head.sha || github.sha }} diff --git a/.github/workflows/ci_standalone_versioned.yml b/.github/workflows/ci_standalone_versioned.yml index 8dbc3ecb0..f79520644 100644 --- a/.github/workflows/ci_standalone_versioned.yml +++ b/.github/workflows/ci_standalone_versioned.yml @@ -8,6 +8,11 @@ on: description: The version to pull of awx required: true type: string + gh_ref: + description: The ref in the repository to pull + required: false + default: devel + type: string env: # Run docker-compose up in the background COMPOSE_UP_OPTS: -d @@ -17,6 +22,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + ref: ${{ gh_ref }} - name: Checkout AWX uses: actions/checkout@v2