From a7dcc59c95591a08e9784fa9e18becd86ed6cad2 Mon Sep 17 00:00:00 2001 From: Tomasz Tutka Date: Wed, 29 May 2024 13:06:33 +0200 Subject: [PATCH] corrected the rest flows to use secrets --- .github/workflows/maven-publish.yml | 7 +++ .../workflows/sync_sdk_with_new_api_spec.yml | 8 ++++ ...t-2-public-service-profile-connection.json | 43 ------------------- 3 files changed, 15 insertions(+), 43 deletions(-) delete mode 100644 v4/api/json/port-2-public-service-profile-connection.json diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 562337eb..a190b783 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -17,6 +17,9 @@ jobs: contents: read packages: write + env: + TEST_DATA_UAT_QINQ_PORT: ${{ secrets.TEST_DATA_UAT_QINQ_PORT }} + steps: - uses: actions/checkout@v3 - name: Set up JDK 11 @@ -27,6 +30,10 @@ jobs: server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Setup variables + run: | + echo $TEST_DATA_UAT_QINQ_PORT >> "./v4/api/json/port-2-public-service-profile-connection.json" + - name: Publish to GitHub Packages Apache Maven working-directory: ./equinix-openapi-fabric diff --git a/.github/workflows/sync_sdk_with_new_api_spec.yml b/.github/workflows/sync_sdk_with_new_api_spec.yml index 45118150..cf2d22fe 100644 --- a/.github/workflows/sync_sdk_with_new_api_spec.yml +++ b/.github/workflows/sync_sdk_with_new_api_spec.yml @@ -12,6 +12,10 @@ jobs: java-distribution: [temurin] os: [ubuntu-latest] runs-on: ${{ matrix.os }} + + env: + TEST_DATA_UAT_QINQ_PORT: ${{ secrets.TEST_DATA_UAT_QINQ_PORT }} + steps: - name: Get current date id: date @@ -41,6 +45,10 @@ jobs: git config user.name 'github-actions[bot]' git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + - name: Setup variables and generate files + run: | + echo $TEST_DATA_UAT_QINQ_PORT >> "./v4/api/json/port-2-public-service-profile-connection.json" + - name: Sync run: | VERSION_UPDATE="OPENAPI_URL=\"https://app.swaggerhub.com/apiproxy/registry/equinix-api/fabric/${{ github.event.inputs.new_api_spec_version_number }}\"" diff --git a/v4/api/json/port-2-public-service-profile-connection.json b/v4/api/json/port-2-public-service-profile-connection.json deleted file mode 100644 index d5dde86d..00000000 --- a/v4/api/json/port-2-public-service-profile-connection.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "href": "https://api.equinix.com/fabric/v4/ports/c4d9350e-77f1-7f1d-1ce0-306a5c00a600", - "type": "XF_PORT", - "uuid": "c4d9350e-77f1-7f1d-1ce0-306a5c00a600", - "name": "ops-user100-CX-CH1-L-Qinq-BO-20G-SEC-JP-238", - "state": "ACTIVE", - "cvpId": "1615792", - "bandwidth": 20000, - "usedBandwidth": 0, - "availableBandwidth": 20000, - "location": { - "href": "https://api.equinix.com/fabric/v4/metros/CH", - "ibx": "CH1", - "metroCode": "CH", - "metroName": "Chicago", - "region": "AMER" - }, - "device": { - "name": "sit-tb1-ch-e2.lab", - "redundancy": { - "priority": "SECONDARY" - } - }, - "redundancy": { - "priority": "SECONDARY" - }, - "encapsulation": { - "type": "QINQ", - "tagProtocolId": "0x9100" - }, - "lag": { - "id": "206", - "enabled": true, - "name": "ae206" - }, - "lagEnabled": true, - "settings": { - "buyout": true, - "placeVcOrderPermission": true, - "viewPortPermission": true - } -} -{ "href": "https://api.equinix.com/fabric/v4/ports/c4d9350e-77f1-7f1d-1ce0-306a5c00a600", "type": "XF_PORT", "uuid": "c4d9350e-77f1-7f1d-1ce0-306a5c00a600", "name": "ops-user100-CX-CH1-L-Qinq-BO-20G-SEC-JP-238", "state": "ACTIVE", "cvpId": "1615792", "bandwidth": 20000, "usedBandwidth": 0, "availableBandwidth": 20000, "location": { "href": "https://api.equinix.com/fabric/v4/metros/CH", "ibx": "CH1", "metroCode": "CH", "metroName": "Chicago", "region": "AMER" }, "device": { "name": "sit-tb1-ch-e2.lab", "redundancy": { "priority": "SECONDARY" } }, "redundancy": { "priority": "SECONDARY" }, "encapsulation": { "type": "QINQ", "tagProtocolId": "0x9100" }, "lag": { "id": "206", "enabled": true, "name": "ae206" }, "lagEnabled": true, "settings": { "buyout": true, "placeVcOrderPermission": true, "viewPortPermission": true } }