REplace repo field with slug

This commit is contained in:
rodelgc 2023-05-12 14:29:37 +08:00
parent e71537b118
commit 56db033947
1 changed files with 43 additions and 52 deletions

View File

@ -310,56 +310,47 @@ jobs:
# -f s3_root=public \ # -f s3_root=public \
# --repo woocommerce/woocommerce-test-reports # --repo woocommerce/woocommerce-test-reports
# plugins-results: plugins-results:
# name: Publish report on Smoke tests on trunk with plugins name: Publish report on Smoke tests on trunk with plugins
# if: | if: |
# ( success() || failure() ) && ( success() || failure() ) &&
# ! github.event.pull_request.head.repo.fork ! github.event.pull_request.head.repo.fork
# runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
# # needs: [e2e-tests, test-plugins, k6-tests] # needs: [e2e-tests, test-plugins, k6-tests]
# needs: [test-plugins] # mytodo revert to the above needs: [test-plugins] # mytodo revert to the above
# env: env:
# GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }} GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
# RUN_ID: ${{ github.run_id }} RUN_ID: ${{ github.run_id }}
# ARTIFACT: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed (run ${{ github.run_number }}) ARTIFACT: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed (run ${{ github.run_number }})
# strategy: strategy:
# fail-fast: false fail-fast: false
# matrix: matrix:
# include: include:
# # mytodo uncomment # mytodo uncomment
# # - plugin: 'WooCommerce Payments' # - plugin: 'WooCommerce Payments'
# # repo: 'automattic/woocommerce-payments' # slug: woocommerce-payments
# # - plugin: 'WooCommerce PayPal Payments' # - plugin: 'WooCommerce PayPal Payments'
# # repo: 'woocommerce/woocommerce-paypal-payments' # slug: woocommerce-paypal-payments
# # - plugin: 'WooCommerce Shipping & Tax' # - plugin: 'WooCommerce Shipping & Tax'
# # repo: 'automattic/woocommerce-services' # slug: woocommerce-services
# # - plugin: 'WooCommerce Subscriptions' # - plugin: 'WooCommerce Subscriptions'
# # repo: WC_SUBSCRIPTIONS_REPO # slug: woocommerce-subscriptions
# # private: true - plugin: 'Gutenberg'
# - plugin: 'Gutenberg' slug: gutenberg
# repo: 'WordPress/gutenberg' - plugin: 'Gutenberg - Nightly'
# - plugin: 'Gutenberg - Nightly' slug: gutenberg-nightly
# repo: 'bph/gutenberg' steps:
# steps: - name: Download test report artifact
# - name: Download test report artifact uses: actions/download-artifact@v3
# uses: actions/download-artifact@v3 with:
# with: name: ${{ env.ARTIFACT }}
# name: ${{ env.ARTIFACT }}
# # mytodo fix this, same slug between Gutenberg and its nightly - name: Publish reports
# - name: Get slug run: |
# id: get-slug gh workflow run publish-test-reports-daily-plugins.yml \
# uses: actions/github-script@v6 -f run_id=$RUN_ID \
# with: -f artifact="${{ env.ARTIFACT }}" \
# result-encoding: string -f plugin="${{ matrix.plugin }}" \
# script: return "${{ matrix.repo }}".split( '/' ).pop() -f slug="${{ matrix.slug }}" \
-f s3_root=public \
# - name: Publish reports --repo woocommerce/woocommerce-test-reports
# run: |
# gh workflow run publish-test-reports-daily-plugins.yml \
# -f run_id=$RUN_ID \
# -f artifact="${{ env.ARTIFACT }}" \
# -f plugin="${{ matrix.plugin }}" \
# -f slug="${{ steps.get-slug.outputs.result }}" \
# -f s3_root=public \
# --repo woocommerce/woocommerce-test-reports