Skip to content

Commit

Permalink
chore(release): 0.0.34
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Jan 21, 2025
1 parent 112aab5 commit fc1e2e7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/push-tag-to-extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ jobs:
version=$(cat scripts/version.sh | grep 'CODECOV_WRAPPER_VERSION=' | cut -d\" -f2)
echo $version
echo "CODECOV_WRAPPER_VERSION=$version" >> $GITHUB_OUTPUT
env_changes=$(git diff $(git tag --sort version:refname | tail -n 2 | head -n 1) $(git tag --sort version:refname | tail -n 1) env)
echo "CODECOV_ENV_CHANGES=$env_changes" >> $GITHUB_OUTPUT
bitrise-step:
needs: set-version
uses: ./.github/workflows/push-tag.yml
with:
repository: "codecov-bitrise"
version: "${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
env_changes: "${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
secrets: inherit

circleci-orb:
Expand All @@ -37,6 +40,7 @@ jobs:
with:
repository: "codecov-circleci-orb"
version: "${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
env_changes: "${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
secrets: inherit

github-action:
Expand All @@ -45,4 +49,5 @@ jobs:
with:
repository: "codecov-action"
version: "${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
env_changes: "${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
secrets: inherit
7 changes: 5 additions & 2 deletions .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on: # yamllint disable-line rule:truthy
version:
required: true
type: string
env_changes:
required: true
type: string

jobs:
run:
Expand All @@ -24,6 +27,7 @@ jobs:
run: |
echo "repository: ${{ inputs.repository }}"
echo "version: ${{ inputs.version }}"
echo "env_changes: ${{ inputs.env_changes }}"
- name: Generate a token
id: app-token
Expand Down Expand Up @@ -65,7 +69,6 @@ jobs:

- name: Create pull request into main
run: |
ENV_CHANGES=$(git diff $(git tag --sort version:refname | tail -n 2 | head -n 1) $(git tag --sort version:refname | tail -n 1) env)
gh pr create --title "chore(release): wrapper -${{ inputs.version }}" --body "$ENV_CHANGES" --base "main"
gh pr create --title "chore(release): wrapper -${{ inputs.version }}" --body "${{ inputs.env_changes }}" --base "main"
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5 changes: 4 additions & 1 deletion dist/codecov.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
CC_WRAPPER_VERSION="0.0.33"
CC_WRAPPER_VERSION="0.0.34"
set +u
say() {
echo -e "$1"
Expand Down Expand Up @@ -232,6 +232,9 @@ cc_run_args+=( $(k_arg SHA) $(v_arg SHA))
cc_run_args+=( $(write_truthy_args CC_FAIL_ON_ERROR) )
cc_run_args+=( $(k_arg GIT_SERVICE) $(v_arg GIT_SERVICE))
cc_run_args+=( $(k_arg SLUG) $(v_arg SLUG))
else
exit_if_error "Invalid run command specified: $CC_RUN_COMMAND"
exit
fi
unset NODE_OPTIONS
# See https://github.com/codecov/uploader/issues/475
Expand Down
3 changes: 3 additions & 0 deletions scripts/run_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ elif [ "$CODECOV_RUN_COMMAND" == "pr-base-picking" ]; then
. ./set_pr_base_picking_args.sh
elif [ "$CODECOV_RUN_COMMAND" == "send-notifications" ]; then
. ./set_send_notifications_args.sh
else
exit_if_error "Invalid run command specified: $CODECOV_RUN_COMMAND"
exit
fi

unset NODE_OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
CODECOV_WRAPPER_VERSION="0.0.33"
CODECOV_WRAPPER_VERSION="0.0.34"

0 comments on commit fc1e2e7

Please sign in to comment.