File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change 3
3
context-name :
4
4
description : ' Context name to switch to'
5
5
required : true
6
- outputs :
7
- python-version :
8
- description : ' Python version'
9
- value : string
10
- initial-commit-sha :
11
- description : ' Initial commit sha for calculating changelog diffs'
12
- value : string
13
- initial-version :
14
- description : ' Initial version to release if no tag exists yet'
15
- value : string
16
6
runs :
17
7
using : " composite"
18
8
steps :
23
13
cp scripts/dev/contexts/gha-private-context scripts/dev/contexts/private-context
24
14
scripts/dev/switch_context.sh ${{inputs.context-name}}
25
15
echo "Finished initializing to the ${{inputs.context-name}}"
26
- source .generated/context.env
27
- printenv
28
- echo "python-version=$(echo ${PYTHON_VERSION})" | tee $GITHUB_OUTPUT
29
- echo "initial-commit-sha=$(echo ${INITIAL_COMMIT_SHA})" | tee $GITHUB_OUTPUT
30
- echo "initial-version=$(echo ${INITIAL_VERSION})" | tee $GITHUB_OUTPUT
16
+ while read line; do
17
+ echo "$line" >> $GITHUB_ENV
18
+ done < .generated/context.env
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ jobs:
29
29
- name : Setup host
30
30
uses : ./.github/actions/setup-ubuntu-host
31
31
with :
32
- python-version : ' ${{ steps.switch_context.outputs.python-version }}'
32
+ python-version : ' ${{ env.PYTHON_VERSION }}'
33
33
- name : Generate Release Notes
34
34
run : python -m scripts.release.release_notes -s $INITIAL_COMMIT_SHA -v $INITIAL_VERSION -o release_notes_tmp.md
35
35
env :
36
36
# We can not use environments set via GitHub UI because they will
37
37
# not be available in the pull requests running from forks.
38
- INITIAL_COMMIT_SHA : ' ${{ steps.switch_context.outputs.initial-commit-sha }}'
39
- INITIAL_VERSION : ' ${{ steps.switch_context.outputs.initial-version }}'
38
+ INITIAL_COMMIT_SHA : ' ${{ env.INITIAL_COMMIT_SHA }}'
39
+ INITIAL_VERSION : ' ${{ env.INITIAL_VERSION }}'
40
40
- name : Add disclaimer to release notes preview
41
41
run : |
42
42
echo -e "_:warning: (this preview might not be accurate if the PR is not rebased on current master branch)_\n" > release_notes_preview.md
You can’t perform that action at this time.
0 commit comments