Code Monkey home page Code Monkey logo

Comments (3)

ArcticLampyrid avatar ArcticLampyrid commented on June 30, 2024 3

I've tried to write such an action on my own.
https://github.com/ArcticLampyrid/action-wait-for-workflow

jobs:
  publish:
    if: startsWith(github.ref, 'refs/tags/v')
    runs-on: ubuntu-latest
    steps:
      - name: Wait for build workflow
        uses: ArcticLampyrid/action-wait-for-workflow@v1
        with:
          workflow: build.yml
          sha: ${{ github.sha }}

from wait-on-check-action.

talwat avatar talwat commented on June 30, 2024

For me it's not working either, even when I do include running-workflow-name

from wait-on-check-action.

jacktattersall1 avatar jacktattersall1 commented on June 30, 2024

for reference, heres the result of the curl command to gh api

{
    "total_count": 2,
    "check_runs": [
      {
        "id": 8154832077,
        "name": "AWS Amplify Console Web Preview",
        "node_id": "CR_kwDOHF8L2M8AAAAB5hDczQ",
        "head_sha": "e97ebb905a1642df07a9f58792e3465ef7bb6a91",
        "external_id": "arn:aws:amplify:eu-west-2:475154751441:omited",
        "url": "https://api.github.com/repos/omited/check-runs/8154832077",
        "html_url": "https://github.com/omited/runs/8154832077",
        "details_url": "https://console.aws.amazon.com/amplify/omited",
        "status": "in_progress",
        "conclusion": null,
        "started_at": "2022-09-02T11:10:18Z",
        "completed_at": null,
        "output": {
          "title": null,
          "summary": null,
          "text": null,
          "annotations_count": 0,
          "annotations_url": "https://api.github.com/repos/omited/check-runs/8154832077/annotations"
        },
        "check_suite": {
          "id": 8106614629
        },
        "app": {
          "id": 43827,
          "slug": "aws-amplify-eu-west-2",
          "node_id": "MDM6QXBwNDM4Mjc=",
          "owner": {
            "login": "aws-amplify-console",
            "id": 45215622,
            "node_id": "MDQ6VXNlcjQ1MjE1NjIy",
            "avatar_url": "https://avatars.githubusercontent.com/u/45215622?v=4",
            "gravatar_id": "",
            "url": "https://api.github.com/users/aws-amplify-console",
            "html_url": "https://github.com/aws-amplify-console",
            "followers_url": "https://api.github.com/users/aws-amplify-console/followers",
            "following_url": "https://api.github.com/users/aws-amplify-console/following{/other_user}",
            "gists_url": "https://api.github.com/users/aws-amplify-console/gists{/gist_id}",
            "starred_url": "https://api.github.com/users/aws-amplify-console/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/aws-amplify-console/subscriptions",
            "organizations_url": "https://api.github.com/users/aws-amplify-console/orgs",
            "repos_url": "https://api.github.com/users/aws-amplify-console/repos",
            "events_url": "https://api.github.com/users/aws-amplify-console/events{/privacy}",
            "received_events_url": "https://api.github.com/users/aws-amplify-console/received_events",
            "type": "User",
            "site_admin": false
          },
          "name": "AWS Amplify (eu-west-2)",
          "description": "Hosting for fullstack serverless web apps with continuous deployment",
          "external_url": "https://eu-west-2.console.aws.amazon.com/amplify/home?region=eu-west-2#/",
          "html_url": "https://github.com/apps/aws-amplify-eu-west-2",
          "created_at": "2019-10-16T19:05:27Z",
          "updated_at": "2022-03-29T18:24:04Z",
          "permissions": {
            "checks": "write",
            "contents": "read",
            "metadata": "read",
            "pull_requests": "write",
            "repository_hooks": "write",
            "single_file": "write"
          },
          "events": [
            "check_run",
            "check_suite",
            "pull_request",
            "push"
          ]
        },
        "pull_requests": [
          {
            "url": "https://api.github.com/repos/omited/pulls/92",
            "id": 1044860019,
            "number": 92,
            "head": {
              "ref": "CICDtest",
              "sha": "258de5a0c766e32a5043a9acf7e83fc5a820b995",
              "repo": {
                "id": 475991000,
                "url": "https://api.github.com/repos/omited",
                "name": "erp-system"
              }
            },
            "base": {
              "ref": "master",
              "sha": "07a9deacc9643ec4f0deb79a771475fc407c37f0",
              "repo": {
                "id": 475991000,
                "url": "https://api.github.com/repos/omited",
                "name": "erp-system"
              }
            }
          }
        ]
      },
      {
        "id": 8154831275,
        "name": "test",
        "node_id": "CR_kwDOHF8L2M8AAAAB5hDZqw",
        "head_sha": "e97ebb905a1642df07a9f58792e3465ef7bb6a91",
        "external_id": "5264e576-3c6f-51f6-f055-fab409685f20",
        "url": "https://api.github.com/repos/omited/check-runs/8154831275",
        "html_url": "https://github.com/omited/runs/8154831275?check_suite_focus=true",
        "details_url": "https://github.com/omited/runs/8154831275?check_suite_focus=true",
        "status": "completed",
        "conclusion": "failure",
        "started_at": "2022-09-02T11:10:23Z",
        "completed_at": "2022-09-02T11:15:04Z",
        "output": {
          "title": null,
          "summary": null,
          "text": null,
          "annotations_count": 1,
          "annotations_url": "https://api.github.com/repos/omited/check-runs/8154831275/annotations"
        },
        "check_suite": {
          "id": 8106627254
        },
        "app": {
          "id": 15368,
          "slug": "github-actions",
          "node_id": "MDM6QXBwMTUzNjg=",
          "owner": {
            "login": "github",
            "id": 9919,
            "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
            "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4",
            "gravatar_id": "",
            "url": "https://api.github.com/users/github",
            "html_url": "https://github.com/github",
            "followers_url": "https://api.github.com/users/github/followers",
            "following_url": "https://api.github.com/users/github/following{/other_user}",
            "gists_url": "https://api.github.com/users/github/gists{/gist_id}",
            "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/github/subscriptions",
            "organizations_url": "https://api.github.com/users/github/orgs",
            "repos_url": "https://api.github.com/users/github/repos",
            "events_url": "https://api.github.com/users/github/events{/privacy}",
            "received_events_url": "https://api.github.com/users/github/received_events",
            "type": "Organization",
            "site_admin": false
          },
          "name": "GitHub Actions",
          "description": "Automate your workflow from idea to production",
          "external_url": "https://help.github.com/en/actions",
          "html_url": "https://github.com/apps/github-actions",
          "created_at": "2018-07-30T09:30:17Z",
          "updated_at": "2019-12-10T19:04:12Z",
          "permissions": {
            "actions": "write",
            "administration": "read",
            "checks": "write",
            "contents": "write",
            "deployments": "write",
            "discussions": "write",
            "issues": "write",
            "merge_queues": "write",
            "metadata": "read",
            "packages": "write",
            "pages": "write",
            "pull_requests": "write",
            "repository_hooks": "write",
            "repository_projects": "write",
            "security_events": "write",
            "statuses": "write",
            "vulnerability_alerts": "read"
          },
          "events": [
            "branch_protection_rule",
            "check_run",
            "check_suite",
            "create",
            "delete",
            "deployment",
            "deployment_status",
            "discussion",
            "discussion_comment",
            "fork",
            "gollum",
            "issues",
            "issue_comment",
            "label",
            "merge_group",
            "milestone",
            "page_build",
            "project",
            "project_card",
            "project_column",
            "public",
            "pull_request",
            "pull_request_review",
            "pull_request_review_comment",
            "push",
            "registry_package",
            "release",
            "repository",
            "repository_dispatch",
            "status",
            "watch",
            "workflow_dispatch",
            "workflow_run"
          ]
        },
        "pull_requests": [
          {
            "url": "",
            "id": 1044860019,
            "number": 92,
            "head": {
              "ref": "CICDtest",
              "sha": "258de5a0c766e32a5043a9acf7e83fc5a820b995",
              "repo": {
                "id": 475991000,
                "url": "",
                "name": "erp-system"
              }
            },
            "base": {
              "ref": "master",
              "sha": "07a9deacc9643ec4f0deb79a771475fc407c37f0",
              "repo": {
                "id": 475991000,
                "url": "",
                "name": "erp-system"
              }
            }
          }
        ]
      }
    ]
  }

from wait-on-check-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.