From 40d784b9e09537c1f016ee392a9276313abf3c05 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Tue, 4 Nov 2025 17:58:41 +0000 Subject: [PATCH] test apt-get on ubuntu-24 --- .github/workflows/pull-request.yaml | 50 ++++++++++++++++------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index ef336d8..c7c59b7 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -10,27 +10,33 @@ jobs: contents: read pull-requests: write - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4 - - - name: Analyze content.txt - id: analyze - uses: actions/github-script@v7 - with: - script: | - const pullRequest = require('./.github/workflows/scripts/pull-request.js') - await pullRequest({ github, context, core }, "", null); - - - if: ${{ steps.analyze.outputs.FOO == 'true' }} - run: - touch foo.txt - - - if: ${{ steps.analyze.outputs.FOO == 'true' }} - uses: actions/upload-artifact@v4 - with: - name: foo - path: foo.txt - if-no-files-found: error - overwrite: true + - run: | + set -x + sudo apt-get update + sudo apt-get install -y x11-xserver-utils + sudo dpkg --configure -a + sudo apt-get install -y x11-xserver-utils + + - uses: actions/checkout@v4 + + - name: Analyze content.txt + id: analyze + uses: actions/github-script@v7 + with: + script: | + const pullRequest = require('./.github/workflows/scripts/pull-request.js') + await pullRequest({ github, context, core }, "", null); + + - if: ${{ steps.analyze.outputs.FOO == 'true' }} + run: touch foo.txt + + - if: ${{ steps.analyze.outputs.FOO == 'true' }} + uses: actions/upload-artifact@v4 + with: + name: foo + path: foo.txt + if-no-files-found: error + overwrite: true