Closed ghost closed 3 years ago
今INPUT_***
で書いてる部分、各actionsの説明書に書いてある小文字の変数名で書いても勝手に変換されるので、そちらで書いてもよさそうです。
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepswith
@equal-l2 github acrions の設定のパラメータがverごとに違うみたいで、github_tokenはGITHUB_TOKENに
最近変更らしいのですが、どれが大文字・小文字関係ないのかはわかってないので、もらったURLちゃんと読んでおきます
github_token
ですが、やはり省略できそうです。
自分の使った action-eslint
でも github_token
は required
と書いてありましたが、デフォルト値が指定されているので省略できました。
念のためこのPRで使われている全てのactionの action.yml
を見てきましたが、どれでも github_token
にはデフォルト値が指定されているので、省略できるものと思われます。
(デフォルト値があるのに required
というのがそもそも変な話ですが……)
以下、action.ymlの該当部分です。 https://github.com/tsuyoshicho/action-redpen/blob/7ecc7d73d5d2fcb9d3be59486d338f0c19689ecb/action.yml#L5-L8
@equal-l2 了解です。actionsはreviewdogの仕様が難しいっぽいですね
これはヤバいので辞めておきます。
github actions が仕様変更が多すぎて、リバースエンジニアリングして変数名を考えているところです。