Skip to content

Commit

Permalink
Merge pull request #67 from sshane/no-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasalbarello authored Jul 3, 2022
2 parents d708ed4 + 1970366 commit e255823
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/wait-for-check-without-token.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Wait for check name
on:
push:
workflow_dispatch:

jobs:
wait-without-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Wait without token
uses: ./
with:
ref: ${{ github.sha }}
wait-interval: 10 # seconds
running-workflow-name: wait-without-token
check-name: wait-on-me

- name: Success
run: echo 'Success!'
3 changes: 2 additions & 1 deletion entrypoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
config.allowed_conclusions = allowed_conclusions.split(",").map(&:strip)
config.check_name = check_name
config.check_regexp = check_regexp
config.client = Octokit::Client.new(access_token: token, auto_paginate: true)
config.client = Octokit::Client.new(auto_paginate: true)
config.client.access_token = token unless token.empty?
config.ref = ref
config.repo = ENV["GITHUB_REPOSITORY"]
config.verbose = verbose
Expand Down

0 comments on commit e255823

Please sign in to comment.