Skip to content

Commit fc1e2e7

Browse files
chore(release): 0.0.34
1 parent 112aab5 commit fc1e2e7

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

.github/workflows/push-tag-to-extensions.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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:
@@ -37,6 +40,7 @@ jobs:
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:
@@ -45,4 +49,5 @@ jobs:
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

.github/workflows/push-tag.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1417
jobs:
1518
run:
@@ -24,6 +27,7 @@ jobs:
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
@@ -65,7 +69,6 @@ jobs:
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 }}

dist/codecov.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
CC_WRAPPER_VERSION="0.0.33"
2+
CC_WRAPPER_VERSION="0.0.34"
33
set +u
44
say() {
55
echo -e "$1"
@@ -232,6 +232,9 @@ cc_run_args+=( $(k_arg SHA) $(v_arg SHA))
232232
cc_run_args+=( $(write_truthy_args CC_FAIL_ON_ERROR) )
233233
cc_run_args+=( $(k_arg GIT_SERVICE) $(v_arg GIT_SERVICE))
234234
cc_run_args+=( $(k_arg SLUG) $(v_arg SLUG))
235+
else
236+
exit_if_error "Invalid run command specified: $CC_RUN_COMMAND"
237+
exit
235238
fi
236239
unset NODE_OPTIONS
237240
# See https://github.com/codecov/uploader/issues/475

scripts/run_command.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ elif [ "$CODECOV_RUN_COMMAND" == "pr-base-picking" ]; then
88
. ./set_pr_base_picking_args.sh
99
elif [ "$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
1114
fi
1215

1316
unset NODE_OPTIONS

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
CODECOV_WRAPPER_VERSION="0.0.33"
2+
CODECOV_WRAPPER_VERSION="0.0.34"

0 commit comments

Comments
 (0)