mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-09 12:27:48 +00:00
removed conditional run in action
This commit is contained in:
11
.github/workflows/build-dereferenced-spec.yml
vendored
11
.github/workflows/build-dereferenced-spec.yml
vendored
@@ -42,10 +42,6 @@ jobs:
|
|||||||
|
|
||||||
push_v3_specs_to_postman:
|
push_v3_specs_to_postman:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
|
||||||
github.event.head_commit.modified.* == 'idn/sailpoint-api.v3.yaml' ||
|
|
||||||
github.event.head_commit.modified.* == 'idn/v3/**' ||
|
|
||||||
github.event.head_commit.added.* == 'idn/v3/**'
|
|
||||||
needs: [dereference_spec]
|
needs: [dereference_spec]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR branch
|
- name: Checkout PR branch
|
||||||
@@ -64,10 +60,6 @@ jobs:
|
|||||||
|
|
||||||
push_beta_specs_to_postman:
|
push_beta_specs_to_postman:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
|
||||||
github.event.head_commit.modified.* == 'idn/sailpoint-api.beta.yaml' ||
|
|
||||||
github.event.head_commit.modified.* == 'idn/beta/**' ||
|
|
||||||
github.event.head_commit.added.* == 'idn/beta/**'
|
|
||||||
needs: [dereference_spec]
|
needs: [dereference_spec]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR branch
|
- name: Checkout PR branch
|
||||||
@@ -87,9 +79,6 @@ jobs:
|
|||||||
|
|
||||||
push_nerm_specs_to_postman:
|
push_nerm_specs_to_postman:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
|
||||||
github.event.head_commit.modified.* == 'nerm/**' ||
|
|
||||||
github.event.head_commit.added.* == 'nerm/**'
|
|
||||||
needs: [dereference_spec]
|
needs: [dereference_spec]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout PR branch
|
- name: Checkout PR branch
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ const release = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// push changes to the forked collections
|
// push changes to the forked collections
|
||||||
|
if (changesMade) {
|
||||||
const msg = 'Merging to public collection'
|
const msg = 'Merging to public collection'
|
||||||
console.log('\n' + msg + '...')
|
console.log('\n' + msg + '...')
|
||||||
await new pmAPI.Collection(privateRemoteCollectionIdUid).merge(mainPublicCollectionId)
|
await new pmAPI.Collection(privateRemoteCollectionIdUid).merge(mainPublicCollectionId)
|
||||||
@@ -129,6 +130,10 @@ const release = async () => {
|
|||||||
console.log(msg, '-> FAIL')
|
console.log(msg, '-> FAIL')
|
||||||
throw error("Failed to merge to public collection")
|
throw error("Failed to merge to public collection")
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
console.log('No changes made')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user