|
16 | 16 | env:
|
17 | 17 | BACKSTAGE_APP_NAME: backstagediffapp
|
18 | 18 | VERSION: ${{ github.event.inputs.version }}
|
| 19 | + RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }} |
19 | 20 | steps:
|
20 | 21 | - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
21 | 22 |
|
@@ -61,24 +62,24 @@ jobs:
|
61 | 62 | - id: check_yarn_plugin_branch
|
62 | 63 | name: Check if yarn plugin branch already exists
|
63 | 64 | run: |
|
64 |
| - SKIP_DIFF="true" && [[ -z "$(git ls-remote --heads origin release/yarn-plugin/${VERSION})" ]] && SKIP_DIFF="false" |
| 65 | + SKIP_DIFF="true" && [[ -z "$(git ls-remote --heads origin release/yarn-plugin/${RELEASE_VERSION})" ]] && SKIP_DIFF="false" |
65 | 66 | echo "::set-output name=skip_create_diff::${SKIP_DIFF}"
|
66 | 67 | - name: Install yarn plugin
|
67 | 68 | run: |
|
68 | 69 | yarn plugin import https://versions.backstage.io/v1/tags/next/yarn-plugin
|
69 | 70 | - name: Run versions:bump to migrate to backstage:^ versions
|
70 | 71 | run: |
|
71 |
| - npx @backstage/cli@latest versions:bump --release ${{ github.event.inputs.releaseVersion }} |
| 72 | + npx @backstage/cli@latest versions:bump --release $RELEASE_VERSION |
72 | 73 | env:
|
73 | 74 | YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
74 |
| - - name: Create branch for release ${VERSION} with yarn plugin installed |
| 75 | + - name: Create branch for release ${RELEASE_VERSION} with yarn plugin installed |
75 | 76 | if: steps.check_yarn_plugin_branch.outputs.skip_create_diff == 'false'
|
76 | 77 | run: |
|
77 |
| - git checkout -b release/yarn-plugin/${VERSION} |
| 78 | + git checkout -b release/yarn-plugin/${RELEASE_VERSION} |
78 | 79 | git add .
|
79 | 80 | git reset $BACKSTAGE_APP_NAME
|
80 |
| - git commit -m "Release ${VERSION}" |
81 |
| - git push origin release/yarn-plugin/${VERSION} |
| 81 | + git commit -m "Release ${RELEASE_VERSION}" |
| 82 | + git push origin release/yarn-plugin/${RELEASE_VERSION} |
82 | 83 | - run: echo "🍏 This job's status is ${{ job.status }}."
|
83 | 84 | diff:
|
84 | 85 | name: Create new diffs
|
@@ -110,9 +111,9 @@ jobs:
|
110 | 111 | mv _releases.json releases.json
|
111 | 112 | - name: Create new diffs for yarn plugin
|
112 | 113 | run: |
|
113 |
| - for version in $(jq -r 'to_entries |.[] | .value.createApp // .key' < releases-yarn-plugin.json); do |
114 |
| - echo "Creating yarn-plugin diffs between version $version and $NEW_VERSION " |
115 |
| - git diff -U1 origin/release/yarn-plugin/$version..origin/release/yarn-plugin/$NEW_VERSION > diffs-yarn-plugin/$version..$NEW_VERSION.diff |
| 114 | + for version in $(jq -r 'to_entries |.[] | .key' < releases-yarn-plugin.json); do |
| 115 | + echo "Creating yarn-plugin diffs between version $version and $RELEASE_VERSION" |
| 116 | + git diff -U1 origin/release/yarn-plugin/$version..origin/release/yarn-plugin/$RELEASE_VERSION > diffs-yarn-plugin/$version..$RELEASE_VERSION.diff |
116 | 117 | done
|
117 | 118 | - name: Add new version to releases-yarn-plugin.json
|
118 | 119 | run: |
|
|
0 commit comments