LoginSignup
1
0

Github Actions にて Public IP Install で失敗した時の対応

Last updated at Posted at 2023-12-11

はじめに

こちらで設定したGithub actions にて自動デプロイのworkflowが失敗していた。
view workflow file内のbuildメニュー内の実行履歴を確認すると

haythem/public-ip@v1.2というpublic ip installのためのライブラリからの取得に失敗していた。

スクリーンショット_2023-12-11_10_48_47.png

やったこと

まずhaythem/public-ipというオープンソースを配置しているGithubを確認しにいく。
(指定しているバージョンが古いかもと思いながら...)

Github:
https://github.com/haythem/public-ip

見に行ってみると
READMEに下記の記載がありました。

name: Public IP

on: push

jobs:
 build:
   runs-on: ubuntu-latest

   steps:
   - name: Public IP
     id: ip
     uses: haythem/public-ip@v1.3

   - name: Print Public IP
     run: |
       echo ${{ steps.ip.outputs.ipv4 }}
       echo ${{ steps.ip.outputs.ipv6 }}

uses: haythem/public-ip@v1.3
が最新みたいでした。

いま使っているのが1.2なのでそのバージョンを更新

修正前
スクリーンショット 2023-12-11 11.01.53.png

修正後

スクリーンショット_2023-12-11_11_04_00.png

これで自動デプロイが問題なく実行できるようになりました。
以上になります。

1
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
1
0