修復Github Action遭遇This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.問題

這幾天重拾前一年開發的APP專案,因為掛上github action在merge前要先通過unit test。然後,github action就失敗了... 原因

This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.



點進去看細節寫著

Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'ubuntu-16.04'

Waiting for a self-hosted runner to pickup this job...

google後驚覺是Ubuntu系統版本導致,在action的issue有提到

Ubuntu 16.04 environment will be removed on September 20, 2021

https://github.com/actions/virtual-environments/issues/3287


解法

把yml檔案的runs-on: 設定改成ubuntu-18.04,或是使用ubuntu-latest即可。

不過對於某些APP這樣的升級可能需要調整相依套件,就看個人狀況囉!

留言