From 8d522bb1362fe80084660031dd93b1576a7e8bbe Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Wed, 22 Mar 2023 10:59:37 +0100 Subject: [PATCH] workflows: replace gihub.event.inputs with inputs --- .github/workflows/openvidu-ce-test.yml | 16 ++++++++-------- .../openvidu-components-angular-E2E.yml | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/openvidu-ce-test.yml b/.github/workflows/openvidu-ce-test.yml index 372d60dd..5907560c 100644 --- a/.github/workflows/openvidu-ce-test.yml +++ b/.github/workflows/openvidu-ce-test.yml @@ -45,19 +45,19 @@ jobs: main: runs-on: ubuntu-latest container: - image: ${{ github.event.inputs.TEST_IMAGE || 'openvidu/openvidu-test-e2e:22.04' }} + image: ${{ inputs.TEST_IMAGE || 'openvidu/openvidu-test-e2e:22.04' }} volumes: - /var/run/docker.sock:/var/run/docker.sock - /opt/openvidu:/opt/openvidu env: - TEST_IMAGE: ${{ github.event.inputs.TEST_IMAGE || 'openvidu/openvidu-test-e2e:22.04' }} + TEST_IMAGE: ${{ inputs.TEST_IMAGE || 'openvidu/openvidu-test-e2e:22.04' }} KURENTO_SNAPSHOTS_URL: ${{ secrets.KURENTO_SNAPSHOTS_URL }} - KURENTO_MEDIA_SERVER_IMAGE: ${{ github.event.inputs.KURENTO_MEDIA_SERVER_IMAGE || 'kurento/kurento-media-server:6.18.0' }} - KURENTO_JAVA_COMMIT: ${{ github.event.inputs.KURENTO_JAVA_COMMIT || 'default' }} - DOCKER_RECORDING_VERSION: ${{ github.event.inputs.DOCKER_RECORDING_VERSION || 'default' }} - CHROME_VERSION: ${{ github.event.inputs.CHROME_VERSION || 'latest' }} - FIREFOX_VERSION: ${{ github.event.inputs.FIREFOX_VERSION || 'latest' }} - EDGE_VERSION: ${{ github.event.inputs.EDGE_VERSION || 'latest' }} + KURENTO_MEDIA_SERVER_IMAGE: ${{ inputs.KURENTO_MEDIA_SERVER_IMAGE || 'kurento/kurento-media-server:6.18.0' }} + KURENTO_JAVA_COMMIT: ${{ inputs.KURENTO_JAVA_COMMIT || 'default' }} + DOCKER_RECORDING_VERSION: ${{ inputs.DOCKER_RECORDING_VERSION || 'default' }} + CHROME_VERSION: ${{ inputs.CHROME_VERSION || 'latest' }} + FIREFOX_VERSION: ${{ inputs.FIREFOX_VERSION || 'latest' }} + EDGE_VERSION: ${{ inputs.EDGE_VERSION || 'latest' }} steps: - uses: actions/checkout@v3 - name: Setup scripts diff --git a/.github/workflows/openvidu-components-angular-E2E.yml b/.github/workflows/openvidu-components-angular-E2E.yml index 91ef6b4c..13c3c19d 100644 --- a/.github/workflows/openvidu-components-angular-E2E.yml +++ b/.github/workflows/openvidu-components-angular-E2E.yml @@ -24,12 +24,12 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.commit_sha || github.sha }} + ref: ${{ inputs.commit_sha || github.sha }} - uses: actions/setup-node@v3 with: node-version: '16' - name: Commit URL - run: echo https://github.com/OpenVidu/openvidu/commit/${{ github.event.inputs.commit_sha || github.sha }} + run: echo https://github.com/OpenVidu/openvidu/commit/${{ inputs.commit_sha || github.sha }} - name: Send repository dispatch event env: GITHUB_TOKEN: ${{ secrets.OPENVIDU_DISPATCH_EVENT_GA }} @@ -62,7 +62,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.commit_sha || github.sha }} + ref: ${{ inputs.commit_sha || github.sha }} - uses: actions/setup-node@v3 with: node-version: '16' @@ -97,7 +97,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.commit_sha || github.sha }} + ref: ${{ inputs.commit_sha || github.sha }} - uses: actions/setup-node@v3 with: node-version: '16'