Hosting requests do not seem to support trailing /
in repo URLs
#5185
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hosting re-checker | |
on: | |
issue_comment: | |
types: | |
- created | |
- edited | |
jobs: | |
hosting: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.comment.body == '/hosting re-check'}} | |
steps: | |
- name: Ack | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const {owner, repo} = context.issue | |
github.rest.reactions.createForIssueComment({ | |
owner, | |
repo, | |
comment_id: context.payload.comment.id, | |
content: "+1", | |
}); | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' # See 'Supported distributions' for available options | |
java-version: '11' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn -B package -Dspotbugs.skip | |
- name: Run hosting checker | |
run: | | |
java -cp target/repository-permissions-updater-1.0-SNAPSHOT-bin/repository-permissions-updater-1.0-SNAPSHOT.jar io.jenkins.infra.repository_permissions_updater.hosting.HostingChecker ${{ github.event.issue.number }} | |
env: | |
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} |