Skip to content

Commit

Permalink
corrected the rest flows to use secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkat committed May 29, 2024
1 parent 1f2e3cc commit a7dcc59
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 43 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/sync_sdk_with_new_api_spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}\""
Expand Down
43 changes: 0 additions & 43 deletions v4/api/json/port-2-public-service-profile-connection.json

This file was deleted.

0 comments on commit a7dcc59

Please sign in to comment.