こんな感じのエラー
一括設定しようとするとたまにこんなエラーが出ます。
> gh variable set -f .env
✓ Created Actions variable VAR1 for matoruru/samplerepo
✓ Created Actions variable VAR2 for matoruru/samplerepo
✓ Created Actions variable VAR3 for matoruru/samplerepo
1 error occurred:
* failed to set variable "VAR4": HTTP 500: Server Error (https://api.github.com/repos/matoruru/samplerepo/actions/variables)
解決方法
単にもう一回実行すればOK。
> gh variable set -f .env
✓ Created Actions variable VAR1 for matoruru/samplerepo
✓ Created Actions variable VAR2 for matoruru/samplerepo
✓ Created Actions variable VAR3 for matoruru/samplerepo
✓ Created Actions variable VAR4 for matoruru/samplerepo