Skip to content

Commit bbbaaf5

Browse files
committed
refactor: delegate release planning to composite action
1 parent c69c1dd commit bbbaaf5

1 file changed

Lines changed: 9 additions & 32 deletions

File tree

‎.github/workflows/release-plan.yml‎

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -60,35 +60,12 @@ jobs:
6060
persist-credentials: false
6161

6262
- name: Build release plan
63-
env:
64-
GITHUB_TOKEN: ${{ github.token }}
65-
BLOCKER_QUERIES: ${{ inputs.blocker_queries }}
66-
RELEASE_VERSION: ${{ inputs.version }}
67-
STABLE_BRANCH: ${{ inputs.stable_branch }}
68-
APPINFO_PATH: ${{ inputs.appinfo_path }}
69-
CHANGELOG_PATH: ${{ inputs.changelog_path }}
70-
MILESTONE: ${{ inputs.milestone }}
71-
run: |
72-
python3 .github-workflows/scripts/release_plan.py \
73-
--version "$RELEASE_VERSION" \
74-
--stable-branch "$STABLE_BRANCH" \
75-
--current-ref "$GITHUB_REF_NAME" \
76-
--repository "$GITHUB_REPOSITORY" \
77-
--appinfo "$APPINFO_PATH" \
78-
--changelog "$CHANGELOG_PATH" \
79-
--milestone "$MILESTONE" \
80-
--blocker-queries-json "$BLOCKER_QUERIES" \
81-
--output release-plan.json
82-
83-
- name: Add plan summary
84-
if: always()
85-
run: |
86-
if [[ -f release-plan.json ]]; then
87-
{
88-
echo '## Release plan'
89-
echo
90-
echo '~~~json'
91-
cat release-plan.json
92-
echo '~~~'
93-
} >> "$GITHUB_STEP_SUMMARY"
94-
fi
63+
uses: ./.github-workflows/actions/release-plan
64+
with:
65+
version: ${{ inputs.version }}
66+
stable-branch: ${{ inputs.stable_branch }}
67+
milestone: ${{ inputs.milestone }}
68+
blocker-queries: ${{ inputs.blocker_queries }}
69+
appinfo-path: ${{ inputs.appinfo_path }}
70+
changelog-path: ${{ inputs.changelog_path }}
71+
github-token: ${{ github.token }}

0 commit comments

Comments
 (0)