0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Github Pagesのdeployで無限ループしてGithub Actionsが終わらない

Posted at

状況

developにて作業をしてmainにPull requestsを作成してmergeした.
通常であればそのままgithub pagesのdeployが実行されるが,deploy jobにて無限ループが始まった.

jobs
├─✅builds
│  ├─Set up job
│  ├─Pull ghcr.io
│  ├─Checkout
│  ├─Build with jekyll
│  ├─Upload artifact
│  ├─Post Checkout
│  └─Complete job
├─✅report-build-status
│  ├─Set up job
│  ├─Report Build Status
│  └─Complete job
└─❗deploy
    ├─Set up job
    ├─Deploy to Github Pages
    | ├─Run actions/deploy-pages@v4
    │ ├─Fetching artifact metadata for "github-pages" in this workflow run
    │ ├─Found 1 artifact(s)
    │ ├─Creating Pages deployment with payload:
    |    {
    |  	    "artifact_id": ***,
    |       "pages_build_version":"***",
    |   	"oidc_token": "***"
    |    }
    |  ├─Created deployment for ***, ID: ***
    |  ├─Getting Pages deployment status...
    |  ├─Current status: deployment_queued
    |  ├─Getting Pages deployment status...
    |  ├─Current status: deployment_queued
    |  ├─Getting Pages deployment status...
    |  ├─Current status: deployment_queued
    |  ├─ ・・・
Getting Pages deployment status...
Current status: deployment_queued

数時間待ったが,これらの繰り返しで進行しない.
また,deploy jobのcancelは可能であるが,workflow runのcancelは不可能である.

Failed to cancel workflow.

解決法

ローカルにてmainヘmergeしてpushする.

git checkout main
git merge {任意のbranch}
git push origin main

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?