Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Nov 14, 2024
1 parent bf2df8e commit 0c7b68d
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/codecov-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,7 @@ jobs:
for key in $(jq -r 'keys[]' ./codecov_info.json); do
value=$(jq -r --arg key "$key" '.[$key]' ./codecov_info.json)
echo "codecov_info_$key=$value" >> $GITHUB_ENV
echo "codecov_info_$key=$value"
done
- name: Check Result
id: checkciskip
env:
COMMIT_API: ${{ github.event.repository.commits_url }}
GH_GH: ${{ toJson(github) }}
FROM_CI_EVENT: ${{ github.event.workflow_run.event }}
PR_HEADBRANCH: ${{ github.event.workflow_run.head_branch }}
PR_HEADSHA: ${{ github.event.workflow_run.head_sha }}
PR_HEADMSG: ${{ github.event.workflow_run.head_commit.message }}
PR_NUM: ${{ github.event.workflow_run.pull_requests[0].number }}
PR_URL: ${{ github.event.workflow_run.pull_requests[0].url }}
PR_RUNID: ${{ github.event.workflow_run.id }}
PR_CHECKID: ${{ github.event.workflow_run.check_suite_id }}
run: |
echo "PR Run ID : $PR_RUNID"
echo "From CI Event : $FROM_CI_EVENT"
echo "PR Number : $PR_NUM"
echo "GH_GH : $GH_GH"
echo "PR URL : $PR_URL"
echo "Head Branch Ref : $PR_HEADBRANCH"
echo "PR Head Commit SHA : $PR_HEADSHA"
SKIP_A=$([[ "$PR_HEADBRANCH" == l10n_* ]] && echo true || echo false)
echo "Skip if branch starts with l10n_ : $SKIP_A"
echo "Commit Message:"
echo "$PR_HEADMSG"
EXP_SKIP="\[ci skip]"
SKIP_B=$([[ "$PR_HEADMSG" =~ $EXP_SKIP ]] && echo true || echo false)
echo "Skip via Commit Msg : $SKIP_B"
REPO_SKIP="/repos/Cookie-AutoDelete/Cookie-AutoDelete"
SKIP_C=$([[ "$PR_URL" =~ $REPO_SKIP ]] && echo false || echo true)
echo "Skip as PR not in main Repo : $SKIP_C"
RES=$([[ $SKIP_A == true || $SKIP_B == true || $SKIP_C = true ]] && echo true || echo false)
echo "Skip CI : $RES"
echo "::set-output name=result::$RES"
- name: Download Coverage Artifacts
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 0c7b68d

Please sign in to comment.