mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-09 03:58:46 -04:00
Upgrade actions checkout from v3 to v4 to avoid 'node 16 actions deprecated' warnings
This commit is contained in:
parent
e61c6c2a90
commit
c691510eca
8
.github/workflows/buildAndDeploy.yml
vendored
8
.github/workflows/buildAndDeploy.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
release_body: ${{ steps.read_release.outputs.release_body }}
|
release_body: ${{ steps.read_release.outputs.release_body }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Read release.md and use it as a body of new release. This will fail for patch releases, since they have no readme.
|
- name: Read release.md and use it as a body of new release. This will fail for patch releases, since they have no readme.
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@ -45,7 +45,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: get-release-body
|
needs: get-release-body
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@ -107,7 +107,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: get-release-body
|
needs: get-release-body
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@ -178,7 +178,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-jar
|
needs: build-jar
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
2
.github/workflows/buildAndTest.yml
vendored
2
.github/workflows/buildAndTest.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
name: Check code and run unit tests
|
name: Check code and run unit tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
4
.github/workflows/buildMultiplatform.yml
vendored
4
.github/workflows/buildMultiplatform.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build Android (Java ${{ matrix.java_version }})
|
name: Build Android (Java ${{ matrix.java_version }})
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@ -72,7 +72,7 @@ jobs:
|
|||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
2
.github/workflows/detektAnalysis.yml
vendored
2
.github/workflows/detektAnalysis.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
|
2
.github/workflows/dockerPublish.yml
vendored
2
.github/workflows/dockerPublish.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Install the cosign tool except on PR
|
# Install the cosign tool except on PR
|
||||||
# https://github.com/sigstore/cosign-installer
|
# https://github.com/sigstore/cosign-installer
|
||||||
|
2
.github/workflows/mkdocs.yml
vendored
2
.github/workflows/mkdocs.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
6
.github/workflows/uncivbot.yml
vendored
6
.github/workflows/uncivbot.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
# This is the only place I could find an apparent list of valid author associations. Also, at least they're not case-sensitive: https://docs.github.com/en/graphql/reference/enums#commentauthorassociation https://docs.github.com/en/actions/learn-github-actions/expressions#contains
|
# This is the only place I could find an apparent list of valid author associations. Also, at least they're not case-sensitive: https://docs.github.com/en/graphql/reference/enums#commentauthorassociation https://docs.github.com/en/actions/learn-github-actions/expressions#contains
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
- name: Generate new buildConfig.kt and changelog.md files
|
- name: Generate new buildConfig.kt and changelog.md files
|
||||||
run: |
|
run: |
|
||||||
@ -53,7 +53,7 @@ jobs:
|
|||||||
repo: repository.repo,
|
repo: repository.repo,
|
||||||
})
|
})
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with: # Required for triggering the deploy on tags added by this automation
|
with: # Required for triggering the deploy on tags added by this automation
|
||||||
# See https://github.com/stefanzweifel/git-auto-commit-action#commits-made-by-this-action-do-not-trigger-new-workflow-runs
|
# See https://github.com/stefanzweifel/git-auto-commit-action#commits-made-by-this-action-do-not-trigger-new-workflow-runs
|
||||||
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
||||||
@ -76,7 +76,7 @@ jobs:
|
|||||||
# This is the only place I could find an apparent list of valid author associations. Also, at least they're not case-sensitive: https://docs.github.com/en/graphql/reference/enums#commentauthorassociation https://docs.github.com/en/actions/learn-github-actions/expressions#contains
|
# This is the only place I could find an apparent list of valid author associations. Also, at least they're not case-sensitive: https://docs.github.com/en/graphql/reference/enums#commentauthorassociation https://docs.github.com/en/actions/learn-github-actions/expressions#contains
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
- name: Add translation PRs to the new branch, and PR the new branch to master
|
- name: Add translation PRs to the new branch, and PR the new branch to master
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ object BackwardCompatibility {
|
|||||||
historyStartTurn = turns
|
historyStartTurn = turns
|
||||||
}
|
}
|
||||||
|
|
||||||
fun GameInfo.ensureUnitIds(){
|
fun GameInfo.ensureUnitIds() {
|
||||||
if (lastUnitId == 0) lastUnitId = tileMap.values.asSequence()
|
if (lastUnitId == 0) lastUnitId = tileMap.values.asSequence()
|
||||||
.flatMap { it.getUnits() }.maxOfOrNull { it.id }?.coerceAtLeast(0) ?: 0
|
.flatMap { it.getUnits() }.maxOfOrNull { it.id }?.coerceAtLeast(0) ?: 0
|
||||||
for (unit in tileMap.values.flatMap { it.getUnits() }) {
|
for (unit in tileMap.values.flatMap { it.getUnits() }) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user