mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2026-12-01 01:43:02 +01:00
Unify ubuntu base image version across workflows (#77)
This commit is contained in:
@@ -81,7 +81,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-26.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install Ubuntu dependencies
|
- name: Install Ubuntu dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-required-prs:
|
check-required-prs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-26.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check required PRs
|
- name: Check required PRs
|
||||||
uses: MalTeeez/packscripts@a89fe398d047ac9e2e165465a51096be4f9853cb
|
uses: MalTeeez/packscripts@a89fe398d047ac9e2e165465a51096be4f9853cb
|
||||||
@@ -19,4 +19,4 @@ jobs:
|
|||||||
--allow_all_merged
|
--allow_all_merged
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
config: https://raw.githubusercontent.com/MalTeeez/packscripts-auto-builds/refs/heads/gtnh-daily/packscripts.json
|
config: https://raw.githubusercontent.com/MalTeeez/packscripts-auto-builds/refs/heads/gtnh-daily/packscripts.json
|
||||||
annotated_file: https://raw.githubusercontent.com/MalTeeez/packscripts-auto-builds/refs/heads/gtnh-daily/annotated_mods.json
|
annotated_file: https://raw.githubusercontent.com/MalTeeez/packscripts-auto-builds/refs/heads/gtnh-daily/annotated_mods.json
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
# This needs to be kept in sync with the labels being checked
|
# This needs to be kept in sync with the labels being checked
|
||||||
# These don't need to hold the entire label name and aren't case sensitive
|
# These don't need to hold the entire label name and aren't case sensitive
|
||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'Affects Balance') || contains(github.event.pull_request.labels.*.name, 'ongoing freeze') }}
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'Affects Balance') || contains(github.event.pull_request.labels.*.name, 'ongoing freeze') }}
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-26.04
|
||||||
steps:
|
steps:
|
||||||
- name: Label requires reviews
|
- name: Label requires reviews
|
||||||
uses: GTNewHorizons/label-requires-reviews-action@master
|
uses: GTNewHorizons/label-requires-reviews-action@master
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: Test integration in latest daily
|
name: Test integration in latest daily
|
||||||
|
|
||||||
# Note: this reusable workflow must called from a context that is triggered by a "Build and test" run (which then propagates the event)
|
# Note: this reusable workflow must called from a context that is triggered by a "Build and test" run (which then propagates the event)
|
||||||
# That context requires workflow_run, which runs in the context of the default branch,
|
# That context requires workflow_run, which runs in the context of the default branch,
|
||||||
# therefore we use the statuses api to place it on the source commit manually here
|
# therefore we use the statuses api to place it on the source commit manually here
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -23,7 +23,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get-pr-url:
|
get-pr-url:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-26.04
|
||||||
# Run on ANY pull_request build completion. We branch on conclusion below
|
# Run on ANY pull_request build completion. We branch on conclusion below
|
||||||
if: github.event.workflow_run.event == 'pull_request'
|
if: github.event.workflow_run.event == 'pull_request'
|
||||||
outputs:
|
outputs:
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
# Real test work runs ONLY on a successful build
|
# Real test work runs ONLY on a successful build
|
||||||
if: needs.get-pr-url.outputs.conclusion == 'success'
|
if: needs.get-pr-url.outputs.conclusion == 'success'
|
||||||
name: Test in latest daily
|
name: Test in latest daily
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-26.04
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/malteeez/gtnh-daily:latest
|
image: ghcr.io/malteeez/gtnh-daily:latest
|
||||||
env:
|
env:
|
||||||
@@ -84,7 +84,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repository: GTNewHorizons/GTNH-Actions-Workflows
|
repository: GTNewHorizons/GTNH-Actions-Workflows
|
||||||
ref: ${{ job.workflow_sha }}
|
ref: ${{ job.workflow_sha }}
|
||||||
sparse-checkout:
|
sparse-checkout:
|
||||||
scripts/
|
scripts/
|
||||||
path: .gtnh-workflows
|
path: .gtnh-workflows
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -120,7 +120,7 @@ jobs:
|
|||||||
# Post a terminal status for every pull_request build, independent of get-pr-url's
|
# Post a terminal status for every pull_request build, independent of get-pr-url's
|
||||||
# result, so a superseding run always clears a stale pending on the source commit
|
# result, so a superseding run always clears a stale pending on the source commit
|
||||||
if: always() && github.event.workflow_run.event == 'pull_request'
|
if: always() && github.event.workflow_run.event == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-26.04
|
||||||
steps:
|
steps:
|
||||||
# Backstop for the cancel-in-progress race on a repaired rerun. Attempt 1 and
|
# Backstop for the cancel-in-progress race on a repaired rerun. Attempt 1 and
|
||||||
# attempt 2 of the triggering build share one run_id but differ in run_attempt,
|
# attempt 2 of the triggering build share one run_id but differ in run_attempt,
|
||||||
@@ -147,7 +147,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "stale=false" >> "$GITHUB_OUTPUT"
|
echo "stale=false" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Report final status to PR commit
|
- name: Report final status to PR commit
|
||||||
if: steps.stalecheck.outputs.stale == 'false'
|
if: steps.stalecheck.outputs.stale == 'false'
|
||||||
env:
|
env:
|
||||||
@@ -173,4 +173,4 @@ jobs:
|
|||||||
-f state="$STATE" \
|
-f state="$STATE" \
|
||||||
-f context="$STATUS_CONTEXT" \
|
-f context="$STATUS_CONTEXT" \
|
||||||
-f description="$DESC" \
|
-f description="$DESC" \
|
||||||
-f target_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
-f target_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
compress:
|
compress:
|
||||||
name: Compress and make a PR if needed
|
name: Compress and make a PR if needed
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-26.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-26.04
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ github.ref_name }}
|
VERSION: ${{ github.ref_name }}
|
||||||
RELEASE_VERSION: ${{ github.ref_name }}
|
RELEASE_VERSION: ${{ github.ref_name }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: Trigger a rebuild with externally required PRs
|
name: Trigger a rebuild with externally required PRs
|
||||||
|
|
||||||
# Note: this reusable workflow must called from a context that is triggered by a "Build and test" run (which then propagates the event)
|
# Note: this reusable workflow must called from a context that is triggered by a "Build and test" run (which then propagates the event)
|
||||||
# That context requires workflow_run, which runs in the context of the default branch,
|
# That context requires workflow_run, which runs in the context of the default branch,
|
||||||
# therefore we use the statuses api to place it on the source commit manually here
|
# therefore we use the statuses api to place it on the source commit manually here
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -10,11 +10,11 @@ permissions:
|
|||||||
actions: write
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
statuses: write
|
statuses: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger-rebuild-with-deps:
|
trigger-rebuild-with-deps:
|
||||||
name: Apply required PRs from external repos
|
name: Apply required PRs from external repos
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-26.04
|
||||||
if: github.event.workflow_run.conclusion == 'failure'
|
if: github.event.workflow_run.conclusion == 'failure'
|
||||||
&& github.event.workflow_run.event == 'pull_request'
|
&& github.event.workflow_run.event == 'pull_request'
|
||||||
&& github.event.workflow_run.run_attempt == 1
|
&& github.event.workflow_run.run_attempt == 1
|
||||||
@@ -105,4 +105,4 @@ jobs:
|
|||||||
-f state="${{ job.status }}" \
|
-f state="${{ job.status }}" \
|
||||||
-f context="Trigger rebuild with deps" \
|
-f context="Trigger rebuild with deps" \
|
||||||
-f description="External PR deps applied; rebuild triggered" \
|
-f description="External PR deps applied; rebuild triggered" \
|
||||||
-f target_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
-f target_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
comment:
|
comment:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-26.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Comment on PR
|
- name: Comment on PR
|
||||||
|
|||||||
Reference in New Issue
Block a user