Skip to content

Commit acd956a

Browse files
authored
[GHA] Fixed patching headless-assets in "Create Tag" workflow (#193)
* [GHA] Added patching headless-assets to "Create Tag" workflow * [GHA] Removed steps unrelated to headless from "Create Tag" workflow
1 parent d3ddc4a commit acd956a

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/auto_tag.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ jobs:
2525
timeout-minutes: 30
2626

2727
steps:
28-
- name: Check for admin-ui-assets tag
29-
if: github.event.repository.name == 'oss'
28+
- name: Check for headless-assets tag
3029
uses: octokit/request-action@v2.x
3130
with:
3231
owner: ibexa
33-
repo: admin-ui-assets
32+
repo: headless-assets
3433
route: /repos/{owner}/{repo}/contents/package.json?ref=v${{ inputs.version }}
3534
env:
3635
GITHUB_TOKEN: ${{ secrets.TRAVIS_GITHUB_TOKEN }}
@@ -136,18 +135,10 @@ jobs:
136135
rc*) $SET_STABILITY rc ;;
137136
esac;
138137
139-
- name: Patch parent version for OSS
140-
if: github.event.repository.name == 'oss'
141-
run: jq '.require["ibexa/admin-ui-assets"] |= "${{ inputs.version }}"' composer.json | sponge composer.json
142-
- name: Patch parent version for Content
143-
if: github.event.repository.name == 'headless'
144-
run: jq '.require["ibexa/oss"] |= "${{ inputs.version }}"' composer.json | sponge composer.json
145-
- name: Patch parent version for Experience
146-
if: github.event.repository.name == 'experience'
147-
run: jq '.require["ibexa/headless"] |= "${{ inputs.version }}"' composer.json | sponge composer.json
148-
- name: Patch parent version for Commerce
149-
if: github.event.repository.name == 'commerce'
150-
run: jq '.require["ibexa/experience"] |= "${{ inputs.version }}"' composer.json | sponge composer.json
138+
- name: Patch parent version for Headless
139+
run: |
140+
jq '.require["ibexa/headless-assets"] |= "${{ inputs.version }}"' composer.json | sponge composer.json
141+
jq '.require["ibexa/oss"] |= "${{ inputs.version }}"' composer.json | sponge composer.json
151142
152143
# The effect of this jq command is to modify the require property of the input JSON object by using values from the $release object,
153144
# if they exist, to update the values of the keys in the require object.

0 commit comments

Comments
 (0)