Compare commits

..

3 Commits

Author SHA1 Message Date
codecov-releaser
30e5f3975b chore(release): wrapper-0.0.26 2024-11-20 01:36:45 +00:00
Tom Hu
095cfe09c6 fix: strip out a trailing \/n from input tokens (#1679) 2024-11-19 18:21:13 -05:00
Tom Hu
b542d5a35c fix: add action version (#1678)
* fix: add action version

* fix: use GITHUB_ACTION_PATH

* fix: forgot a pipe
2024-11-19 17:40:08 -05:00
2 changed files with 7 additions and 2 deletions

View File

@@ -154,6 +154,11 @@ branding:
runs:
using: "composite"
steps:
- name: Action version
shell: bash
run: |
CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version | grep 'CODECOV_ACTION_VERSION=' | cut -d\" -f2)
echo -e "\033[0;32m==>\033[0m Running Action version $CC_ACTION_VERSION"
- name: Set safe directory
if: ${{ inputs.disable_safe_directory != 'true' }}
shell: bash
@@ -171,7 +176,7 @@ runs:
else
if [ -n ${{ inputs.token }} ];
then
CC_TOKEN=${{ inputs.token }}
CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n')
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
fi
fi