File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed
Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,16 @@ jobs:
2222 version=$(cat scripts/version.sh | grep 'CODECOV_WRAPPER_VERSION=' | cut -d\" -f2)
2323 echo $version
2424 echo "CODECOV_WRAPPER_VERSION=$version" >> $GITHUB_OUTPUT
25+ env_changes=$(git diff $(git tag --sort version:refname | tail -n 2 | head -n 1) $(git tag --sort version:refname | tail -n 1) env)
26+ echo "CODECOV_ENV_CHANGES=$env_changes" >> $GITHUB_OUTPUT
2527
2628 bitrise-step :
2729 needs : set-version
2830 uses : ./.github/workflows/push-tag.yml
2931 with :
3032 repository : " codecov-bitrise"
3133 version : " ${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
34+ env_changes : " ${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
3235 secrets : inherit
3336
3437 circleci-orb :
3740 with :
3841 repository : " codecov-circleci-orb"
3942 version : " ${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
43+ env_changes : " ${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
4044 secrets : inherit
4145
4246 github-action :
4549 with :
4650 repository : " codecov-action"
4751 version : " ${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
52+ env_changes : " ${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
4853 secrets : inherit
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ on: # yamllint disable-line rule:truthy
1010 version :
1111 required : true
1212 type : string
13+ env_changes :
14+ required : true
15+ type : string
1316
1417jobs :
1518 run :
2427 run : |
2528 echo "repository: ${{ inputs.repository }}"
2629 echo "version: ${{ inputs.version }}"
30+ echo "env_changes: ${{ inputs.env_changes }}"
2731
2832 - name : Generate a token
2933 id : app-token
6569
6670 - name : Create pull request into main
6771 run : |
68- ENV_CHANGES=$(git diff $(git tag --sort version:refname | tail -n 2 | head -n 1) $(git tag --sort version:refname | tail -n 1) env)
69- gh pr create --title "chore(release): wrapper -${{ inputs.version }}" --body "$ENV_CHANGES" --base "main"
72+ gh pr create --title "chore(release): wrapper -${{ inputs.version }}" --body "${{ inputs.env_changes }}" --base "main"
7073 env :
7174 GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- CC_WRAPPER_VERSION=" 0.0.33 "
2+ CC_WRAPPER_VERSION=" 0.0.34 "
33set +u
44say () {
55 echo -e " $1 "
@@ -232,6 +232,9 @@ cc_run_args+=( $(k_arg SHA) $(v_arg SHA))
232232cc_run_args+=( $( write_truthy_args CC_FAIL_ON_ERROR) )
233233cc_run_args+=( $( k_arg GIT_SERVICE) $( v_arg GIT_SERVICE) )
234234cc_run_args+=( $( k_arg SLUG) $( v_arg SLUG) )
235+ else
236+ exit_if_error " Invalid run command specified: $CC_RUN_COMMAND "
237+ exit
235238fi
236239unset NODE_OPTIONS
237240# See https://github.com/codecov/uploader/issues/475
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ elif [ "$CODECOV_RUN_COMMAND" == "pr-base-picking" ]; then
88 . ./set_pr_base_picking_args.sh
99elif [ " $CODECOV_RUN_COMMAND " == " send-notifications" ]; then
1010 . ./set_send_notifications_args.sh
11+ else
12+ exit_if_error " Invalid run command specified: $CODECOV_RUN_COMMAND "
13+ exit
1114fi
1215
1316unset NODE_OPTIONS
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- CODECOV_WRAPPER_VERSION=" 0.0.33 "
2+ CODECOV_WRAPPER_VERSION=" 0.0.34 "
You can’t perform that action at this time.
0 commit comments