Workflow status shows failing while the action runs are green
nascentcore-eng opened this issue · 3 comments
Not sure if this is the right place to file this issue
The issue is that the workflow constantly running green, but the workflow status badge always shows failing
See the screenshot below:
The full content of the yaml file:
# https://github.com/bazelbuild/setup-bazelisk
name: build-and-test
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build-and-test:
name: bazel-build-and-test
runs-on: ubuntu-latest
container: gcr.io/some-repo/dev_image:202211211459
steps:
- uses: actions/checkout@v3
- uses: bazelbuild/setup-bazelisk@v2
- name: Mount bazel cache # Optional
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
- run: bazel build //src/...
- run: bazel test //src/...
Hello @yaxiong-zhao ,
I think the problem is somewhere with how the badge is working, and is unrelated to the setup-bazelisk
action.
I'm closing this issue.
It's possible, btw, that the badge URL you're using is incorrect (tracking the wrong branch or something), but that's just a guess, as I don't know what configuration you have for that badge (which URL is being used)
FWIW: I renamed the workflow .yml file (I have different yml file for different action workflow).
Then it went OK.
(Thus is the beauty of Open Source software...)