Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 28 additions & 22 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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