Skip to content

Commit

Permalink
update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
skin27 committed Sep 24, 2024
1 parent 4ceaada commit 1c4d4bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
milestone:
description: 'Milestone to use as version'
type: string
required: true

workflow_call:
inputs:
Expand All @@ -22,6 +23,7 @@ on:
milestone:
description: 'Milestone to use as version'
type: string
required: true

jobs:
delete_old_snapshots:
Expand All @@ -39,7 +41,7 @@ jobs:
organization: assimbly
type: maven
keep: 0
version-pattern: "^${{ steps.check_version.outputs.VERSION_TO_DELETE }}$"
semver-pattern: "${{inputs.milestone}}"
names: |
org.assimbly.oauth2token
org.assimbly.replace
Expand All @@ -59,15 +61,6 @@ jobs:
org.assimbly.soap
org.assimbly.tenantvariables
org.assimbly.oriflame
- name: Delete packages
uses: smartsquaregmbh/[email protected]
with:
organization: assimbly
type: maven
keep: 0
version-pattern: "^${{ steps.check_version.outputs.VERSION_TO_DELETE }}$"
names: |
org.assimbly.docconverter
org.assimbly.csvtoxml
org.assimbly.amazon
Expand All @@ -88,7 +81,6 @@ jobs:
org.assimbly.xmltojsonlegacy
org.assimbly.custom-components
release-jars:
needs: delete_old_snapshots
runs-on: ubuntu-latest
Expand All @@ -101,7 +93,7 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v4
with:
repository: assimbly/runtime
repository: assimbly/custom-components
ref: ${{ inputs.branch }}
fetch-depth: 0
token: ${{ secrets.RELEASE_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
milestone:
description: 'Milestone to use as version'
type: string
required: true

workflow_call:
inputs:
Expand All @@ -20,6 +21,7 @@ on:
milestone:
description: 'Milestone to use as version'
type: string
required: true

jobs:
update_version:
Expand All @@ -33,7 +35,7 @@ jobs:
steps:

- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: assimbly/custom-components
ref: ${{ inputs.branch }}
Expand Down

0 comments on commit 1c4d4bd

Please sign in to comment.