]> git.ipfire.org Git - thirdparty/systemd.git/blob - .github/workflows/gather-pr-metadata.yml
test: drop whitespace after shell redirection operators
[thirdparty/systemd.git] / .github / workflows / gather-pr-metadata.yml
1 ---
2
3 name: Gather Pull Request Metadata
4
5 on:
6 pull_request:
7 branches: [ main ]
8
9 env:
10 PULL_REQUEST_METADATA_DIR: pull_request
11 PULL_REQUEST_METADATA_FILE: metadata
12
13 permissions:
14 contents: read
15
16 jobs:
17 gather-metadata:
18 if: github.repository == 'systemd/systemd'
19 runs-on: ubuntu-22.04
20
21 steps:
22 - name: Repository checkout
23 uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
24 with:
25 fetch-depth: 0
26
27 - name: Store PR number in file
28 run: |
29 mkdir -p ./${{ env.PULL_REQUEST_METADATA_DIR }}
30 echo ${{ github.event.number }} >./${{ env.PULL_REQUEST_METADATA_DIR }}/${{ env.PULL_REQUEST_METADATA_FILE }}
31
32 - name: Upload Pull Request Metadata artifact
33 uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
34 with:
35 name: ${{ env.PULL_REQUEST_METADATA_FILE }}
36 path: ${{ env.PULL_REQUEST_METADATA_DIR }}
37 retention-days: 1