Skip to content

Commit

Permalink
actor_id to ref_protected
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Dec 17, 2022
1 parent 4053c63 commit 3851e53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/awesome-bot.yml
Expand Up @@ -10,9 +10,9 @@ on:
name: AsesomeBot
jobs:
check:
# act の場合 github.actor_id がないのでそれを利用
# act の場合 github.ref_protected がないのでそれを利用
# act の image に libssl1.1 が入ってないので 20.04 を使う
runs-on: ${{ (github.actor_id == null && 'ubuntu-20.04') || 'ubuntu-latest' }}
runs-on: ${{ (github.ref_protected == null && 'ubuntu-20.04') || 'ubuntu-latest' }}
env:
ASESOME_BOT_OPTION: --allow-redirect --allow-ssl --allow-dupe -t 60
steps:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -25,6 +25,10 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
# jobs.*.if では env 参照できない
# act の場合 github.ref_protected がないのでそれを利用
# act では実行しない
if: github.ref_protected != null

strategy:
fail-fast: false
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reviewdog.yml
Expand Up @@ -54,6 +54,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: reviewdog/action-actionlint@v1
with:
reporter: github-pr-review

hadolint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3851e53

Please sign in to comment.