Skip to content

Commit

Permalink
use absolute paths including repository id for actions instead of usi…
Browse files Browse the repository at this point in the history
…ng it relative

This makes it possible to use the actions form another repository. Maybe later, all the actions will be moved to a separate repository.
  • Loading branch information
Wolf2323 committed Dec 6, 2024
1 parent 8ebc614 commit efd4361
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-java-maven/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ runs:
server-id: ${{ inputs.JAVA_REPOSITORY_ID }}
server-username: ${{ inputs.JAVA_REPOSITORY_USER }}
server-password: ${{ inputs.JAVA_REPOSITORY_PASS }}
- uses: ./.github/actions/setup-java-maven/cache
- uses: BetonQuest/BetonQuest/.github/actions/setup-java-maven/cache
with:
MAVEN_TARGET_DIR: ${{ inputs.MAVEN_TARGET_DIR }}
2 changes: 1 addition & 1 deletion .github/actions/setup-mkdocs-material/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
python-version: ${{ inputs.PYTHON_VERSION }}
cache: ${{ inputs.PYTHON_CACHE }}
cache-dependency-path: ${{ inputs.PYTHON_CACHE_DEPENDENCY_PATH }}
- uses: ./.github/actions/setup-mkdocs-material/cache
- uses: BetonQuest/BetonQuest/.github/actions/setup-mkdocs-material/cache
with:
MKDOCS_SITE_DIR: ${{ inputs.MKDOCS_SITE_DIR }}
- name: Cache MkDocs site directory /.cache/plugins/optimize
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ outputs:
runs:
using: composite
steps:
- uses: ./.github/actions/version/type
- uses: BetonQuest/BetonQuest/.github/actions/version/type
id: version_type
with:
ROOT_REPOSITORY: ${{ inputs.ROOT_REPOSITORY }}
- uses: ./.github/actions/version/required
- uses: BetonQuest/BetonQuest/.github/actions/version/required
id: require_new
if: "env.VERSION_TYPE == 'development'"
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/version
- uses: BetonQuest/BetonQuest/.github/actions/version
id: version
with:
ROOT_REPOSITORY: BetonQuest/BetonQuest
Expand All @@ -39,11 +39,11 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-maven
- uses: BetonQuest/BetonQuest/.github/actions/setup-java-maven
with:
JAVA_CACHE: 'maven'
MAVEN_TARGET_DIR: 'target/artifacts'
- uses: ./.github/actions/replace-code-variables
- uses: BetonQuest/BetonQuest/.github/actions/replace-code-variables
with:
VERSION: ${{ env.VERSION }}
VERSION_TYPE: ${{ env.VERSION_TYPE }}
Expand Down Expand Up @@ -77,14 +77,14 @@ jobs:
uses: actions/checkout@v4
with:
submodules: ${{ env.VERSION_TYPE == 'release' || env.VERSION_TYPE == 'development' }}
- uses: ./.github/actions/setup-git-lfs
- uses: ./.github/actions/setup-mkdocs-material
- uses: BetonQuest/BetonQuest/.github/actions/setup-git-lfs
- uses: BetonQuest/BetonQuest/.github/actions/setup-mkdocs-material
with:
MKDOCS_MATERIAL_INSIDERS: ${{ secrets.MKDOCS_MATERIAL_INSIDERS }}
MKDOCS_SITE_DIR: 'target/docs'
PYTHON_CACHE: 'pip'
PYTHON_CACHE_DEPENDENCY_PATH: 'docs/setup-docs-dependencies.py'
- uses: ./.github/actions/replace-docs-variables
- uses: BetonQuest/BetonQuest/.github/actions/replace-docs-variables
with:
VERSION: ${{ env.VERSION }}
VERSION_TYPE: ${{ env.VERSION_TYPE }}
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-maven
- uses: BetonQuest/BetonQuest/.github/actions/setup-java-maven
with:
JAVA_CACHE: 'maven'
JAVA_REPOSITORY_ID: 'betonquest'
Expand Down Expand Up @@ -174,8 +174,8 @@ jobs:
fetch-depth: 0
submodules: ${{ env.VERSION_TYPE == 'release' }}
token: ${{ secrets.ALL_REPOSITORIES_ACCESS_TOKEN }}
- uses: ./.github/actions/setup-git-lfs
- uses: ./.github/actions/setup-mkdocs-material
- uses: BetonQuest/BetonQuest/.github/actions/setup-git-lfs
- uses: BetonQuest/BetonQuest/.github/actions/setup-mkdocs-material
with:
MKDOCS_MATERIAL_INSIDERS: ${{ secrets.MKDOCS_MATERIAL_INSIDERS }}
MKDOCS_SITE_DIR: 'target/docs'
Expand Down Expand Up @@ -256,10 +256,10 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-maven/cache
- uses: BetonQuest/BetonQuest/.github/actions/setup-java-maven/cache
with:
MAVEN_TARGET_DIR: 'target/artifacts'
- uses: ./.github/actions/setup-mkdocs-material/cache
- uses: BetonQuest/BetonQuest/.github/actions/setup-mkdocs-material/cache
with:
MKDOCS_SITE_DIR: 'target/docs'
- name: Zip Docs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/daily_dependency_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-maven
- uses: BetonQuest/BetonQuest/.github/actions/setup-java-maven
with:
JAVA_OVERRIDE_SETTINGS: 'false'
- name: Build with Maven
Expand All @@ -27,8 +27,8 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-git-lfs
- uses: ./.github/actions/setup-mkdocs-material
- uses: BetonQuest/BetonQuest/.github/actions/setup-git-lfs
- uses: BetonQuest/BetonQuest/.github/actions/setup-mkdocs-material
with:
MKDOCS_MATERIAL_INSIDERS: ${{ secrets.MKDOCS_MATERIAL_INSIDERS }}
- name: Build with mkdocs
Expand Down

0 comments on commit efd4361

Please sign in to comment.