ci: need checkout for PR verify step
Duh!
MODIFY
.github/workflows/pull-request-verify.yml
.github/workflows/pull-request-verify.yml
@@ -4,32 +4,39 @@ on:
pull_request:
jobs:
- read-version:
+ read-versions:
runs-on: ubuntu-latest
outputs:
- snapshot-version: ${{ steps.check-version-change.outputs.snapshot-version }}
- release-version: ${{ steps.check-version-change.outputs.snapshot-version }}
+ release-version: ${{ steps.read-apiman-versions.outputs.release-version }}
+ snapshot-version: ${{ steps.read-apiman-versions.outputs.snapshot-version }}
steps:
+ - name: Checkout Apiman Docker repo
+ uses: actions/checkout@v3
+
+ - name: Default setup items
+ run: bash .github/workflows/support/setup.sh
+
- name: "Get release and snapshot versions..."
+ id: read-apiman-versions
run: |
- echo "{release_version=$(cat .github/workflows/RELEASE_VERSION)}" >> $GITHUB_ENV
- echo "{snapshot_version=$(cat .github/workflows/SNAPSHOT_VERSION)}" >> $GITHUB_ENV
+ echo "::set-output name=release-version::$(cat .github/workflows/RELEASE_VERSION)"
+ echo "::set-output name=snapshot-version::$(cat .github/workflows/SNAPSHOT_VERSION)"
build-against-release:
- needs: read-version
+ needs: read-versions
uses: apiman/apiman-docker/.github/workflows/docker-test-release.yml@master
secrets: inherit
with:
- apiman-version: ${{ needs.read-version.outputs.release-version }}
+ apiman-version: ${{ needs.read-versions.outputs.release-version }}
push-to-repos: false
snapshot: false
build-against-snapshot:
- needs: read-version
+ needs: read-versions
uses: apiman/apiman-docker/.github/workflows/docker-test-release.yml@master
secrets: inherit
with:
- apiman-version: ${{ needs.read-version.outputs.snapshot-version }}
+ apiman-version: ${{ needs.read-versions.outputs.snapshot-version }}
push-to-repos: false
snapshot: true

MODIFY
.github/workflows/receive-dispatch-update-release-version.yml
.github/workflows/receive-dispatch-update-release-version.yml
@@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v3
- name: Default setup items
- run: bash .git/workflows/support/setup.sh
+ run: bash .github/workflows/support/setup.sh
- name: Update release version in docker-release flow
run: echo ${{ github.event.client_payload.release-version }} > .github/workflows/RELEASE_VERSION

ci: need checkout for PR verify step

Duh!