Resolve issue with valid tokens being incorrectly rejected #680
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: Code Coverage | |
on: | |
workflow_dispatch: | |
pull_request_target: | |
types: | |
- closed | |
branches: | |
- 'main' | |
concurrency: | |
group: codecov-${{ github.event.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.19" | |
- name: Install Revive | |
shell: sh | |
run: | | |
go install github.com/mgechev/revive@latest | |
- name: Cache Ballerina. | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: "ballerina-dist/*.deb" | |
key: "ballerina-2201.7.0" | |
- name: Download Ballerina distribution. | |
shell: sh | |
run: | | |
mkdir -p ballerina-dist | |
wget 'https://dist.ballerina.io/downloads/2201.7.0/ballerina-2201.7.0-swan-lake-linux-x64.deb' -P ballerina-dist | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Install Ballerina distribution. | |
shell: sh | |
run: "sudo dpkg -i ballerina-dist/ballerina-2201.7.0-swan-lake-linux-x64.deb" | |
- name: Verify Ballerina Version | |
shell: sh | |
run: "bal -v" | |
- name: Checkout apk-repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
token: ${{ secrets.WSO2_BOT_TOKEN }} | |
- name: Set release username and email | |
shell: sh | |
run: | | |
git config --global user.name ${{ secrets.WSO2_BOT_USER }} | |
git config --global user.email ${{ secrets.WSO2_BOT_EMAIL }} | |
- name: Run Gradle Build | |
run: | | |
./build-apk.sh | |
- name: run codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
verbose: true # optional (default = false) |