mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-06 04:19:09 +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:
|
||||
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]
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
@@ -64,10 +60,6 @@ jobs:
|
||||
|
||||
push_beta_specs_to_postman:
|
||||
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]
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
@@ -87,9 +79,6 @@ jobs:
|
||||
|
||||
push_nerm_specs_to_postman:
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
github.event.head_commit.modified.* == 'nerm/**' ||
|
||||
github.event.head_commit.added.* == 'nerm/**'
|
||||
needs: [dereference_spec]
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
|
||||
@@ -119,16 +119,21 @@ const release = async () => {
|
||||
}
|
||||
|
||||
// push changes to the forked collections
|
||||
const msg = 'Merging to public collection'
|
||||
console.log('\n' + msg + '...')
|
||||
await new pmAPI.Collection(privateRemoteCollectionIdUid).merge(mainPublicCollectionId)
|
||||
.then(() => {
|
||||
console.log(msg, '-> OK\n') }
|
||||
)
|
||||
.catch((error) => {
|
||||
console.log(msg, '-> FAIL')
|
||||
throw error("Failed to merge to public collection")
|
||||
})
|
||||
if (changesMade) {
|
||||
const msg = 'Merging to public collection'
|
||||
console.log('\n' + msg + '...')
|
||||
await new pmAPI.Collection(privateRemoteCollectionIdUid).merge(mainPublicCollectionId)
|
||||
.then(() => {
|
||||
console.log(msg, '-> OK\n') }
|
||||
)
|
||||
.catch((error) => {
|
||||
console.log(msg, '-> FAIL')
|
||||
throw error("Failed to merge to public collection")
|
||||
})
|
||||
} else {
|
||||
console.log('No changes made')
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user