Skip to content

chore(release): 0.0.34 #47

chore(release): 0.0.34

chore(release): 0.0.34 #47

---
# yamllint disable rule:line-length
name: Push new tagged version
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
# Pattern matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
set-version:
runs-on: ubuntu-latest
outputs:
CODECOV_WRAPPER_VERSION: ${{ steps.version_output.outputs.CODECOV_WRAPPER_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set version variable
id: version_output
run: |
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:
needs: set-version
uses: ./.github/workflows/push-tag.yml
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:
needs: set-version
uses: ./.github/workflows/push-tag.yml
with:
repository: "codecov-action"
version: "${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}"
env_changes: "${{ needs.set-version.outputs.CODECOV_ENV_CHANGES }}"
secrets: inherit