Dev to stage #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Stage tests | |
on: | |
push: | |
branches: | |
- 'stage' | |
workflow_dispatch: | |
inputs: | |
# For creating a backport client version | |
server-tag: | |
required: true | |
default: 'latest' | |
description: 'Server docker image tag' | |
jobs: | |
promote-dev-build-to-rc: | |
uses: ./.github/workflows/bump-version.yml | |
with: | |
change: 'promote-dev-build-to-rc' | |
secrets: | |
CLIENT_BOT_PAT: ${{ secrets.CLIENT_BOT_PAT }} | |
run-stage-tests: | |
needs: promote-dev-build-to-rc | |
uses: ./.github/workflows/stage-tests.yml | |
with: | |
commit_sha: ${{ needs.promote-dev-build-to-rc.outputs.bump_sha }} | |
secrets: inherit | |
filter-artifacts: | |
needs: run-stage-tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github/workflows/filter-artifacts.py | |
.github/actions/dl-and-unwrap-artifacts | |
sparse-checkout-cone-mode: false | |
- name: Get matrix outputs | |
uses: ./.github/actions/dl-and-unwrap-artifacts | |
with: | |
output-folder-name: matrix-outputs | |
artifact-filter-pattern: '*.txt' | |
- name: Filter artifacts | |
id: filter-output | |
run: echo bad_artifacts=$(python3 filter-artifacts.py) >> $GITHUB_OUTPUT | |
working-directory: ./.github/workflows/ | |
- name: Remove failed artifacts and matrix outputs | |
uses: geekyeggo/delete-artifact@v2 | |
with: | |
name: | | |
${{ steps.filter-output.outputs.bad_artifacts }} | |
*.txt | |
upload-to-jfrog: | |
name: Upload artifacts to JFrog | |
needs: [ | |
promote-dev-build-to-rc, | |
filter-artifacts | |
] | |
uses: ./.github/workflows/upload-to-jfrog.yml | |
with: | |
new_version: ${{ needs.promote-dev-build-to-rc.outputs.new_version }} | |
secrets: | |
JFROG_PLATFORM_URL: ${{ secrets.JFROG_PLATFORM_URL }} | |
JFROG_ACCESS_TOKEN: ${{ secrets.JFROG_ACCESS_TOKEN }} |