Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt authored Mar 22, 2024
1 parent fd7f314 commit fb1eff6
Show file tree
Hide file tree
Showing 4 changed files with 356 additions and 288 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,16 @@ jobs:
arguments: build
cache-read-only: false

- name: Run JCC
uses: gradle/gradle-build-action@v2
with:
arguments: checkJarCompatibility
cache-read-only: false

- name: Publish artifacts
uses: neoforged/action-pr-publishing/upload@v1

- uses: actions/upload-artifact@v4
with:
name: jcc
path: jcc.json
35 changes: 35 additions & 0 deletions .github/workflows/compat-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Actually run PR compat checks'

on:
workflow_run:
workflows: [Build PRs]
types:
- completed

permissions:
packages: write
actions: write
contents: write
issues: write
checks: write
pull-requests: write
statuses: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Generate an Application repository access token
id: gen_repo_token
uses: kattecon/gh-app-access-token-gen@v1
with:
app_id: 750463
private_key: ${{ secrets.PR_PUBLISHING_APP_KEY }}
repository: forgeforce/gradle-actions-test
- name: Check PR compat
uses: ForgeForce/action-jar-compatibility@main
with:
self-name: 'forgeforce-pr-publishing[bot]'
beta-version-pattern: 30.+
env:
GITHUB_TOKEN: ${{ steps.gen_repo_token.outputs.token }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ permissions:

jobs:
publish-prs:
if: true
if: false
uses: neoforged/actions/.github/workflows/publish-prs.yml@main
with:
artifact_base_path: net/neoforged/neoforge/|net/neoforged/testframework/
Expand Down
Loading

0 comments on commit fb1eff6

Please sign in to comment.