removed conditional run in action

This commit is contained in:
Philip Ellis
2024-02-02 12:31:25 -06:00
parent e4fca67494
commit fa0549cf93
2 changed files with 15 additions and 21 deletions

View File

@@ -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

View File

@@ -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')
}
}