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