Skip to content

[Feature]: Predicate for checking if a player is using an item #967

[Feature]: Predicate for checking if a player is using an item

[Feature]: Predicate for checking if a player is using an item #967

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build (Fabric)
on:
push:
branches: [ 1.* ]
pull_request:
branches: [ 1.* ]
jobs:
skip_duplicate_jobs:
name: Skip duplicate jobs
continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_ignore: '["**/README.md", "**/docs/**", "**/.gitignore", "**/LICENSE"]'
concurrent_skipping: same_content_newer
build_fabric:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
needs: skip_duplicate_jobs
if: needs.skip_duplicate_jobs.outputs.should_skip != 'true'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Git
run: |
git --version
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git status
git describe --tags
shell: bash
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Execute Gradle build
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
arguments: build --stacktrace
- name: Upload Gradle artifacts
uses: actions/upload-artifact@v3
with:
name: compiled_jar_files
path: fabric/build/libs/
if-no-files-found: error