Skip to content

Commit e255823

Browse files
Merge pull request #67 from sshane/no-auth
2 parents d708ed4 + 1970366 commit e255823

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Wait for check name
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
wait-without-token:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Wait without token
12+
uses: ./
13+
with:
14+
ref: ${{ github.sha }}
15+
wait-interval: 10 # seconds
16+
running-workflow-name: wait-without-token
17+
check-name: wait-on-me
18+
19+
- name: Success
20+
run: echo 'Success!'

entrypoint.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
config.allowed_conclusions = allowed_conclusions.split(",").map(&:strip)
1616
config.check_name = check_name
1717
config.check_regexp = check_regexp
18-
config.client = Octokit::Client.new(access_token: token, auto_paginate: true)
18+
config.client = Octokit::Client.new(auto_paginate: true)
19+
config.client.access_token = token unless token.empty?
1920
config.ref = ref
2021
config.repo = ENV["GITHUB_REPOSITORY"]
2122
config.verbose = verbose

0 commit comments

Comments
 (0)