fix: push new tags to extensions #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Push new tagged version | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
pull_request: | |
push: | |
# Pattern matched against refs/tags | |
tags: | |
- '*' | |
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 | |
bitrise-step: | |
needs: set-version | |
uses: ./.github/workflows/push-tag.yml | |
with: | |
repository: "codecov/codecov-bitrise" | |
version: "${{ needs.set-version.outputs.CODECOV_WRAPPER_VERSION }}" | |
secrets: inherit |