mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-02 09:47:03 +03:00
7a17e41dcf
(The one case that is left unchanged is '< <(subcommand)'.) This way, the style with no gap was already dominant. This way, the reader immediately knows that ' < ' is a comparison operator and ' << ' is a shift. In a few cases, replace custom EOF replacement by just EOF. There is no point in using someting like "_EOL" unless "EOF" appears in the text.
38 lines
971 B
YAML
38 lines
971 B
YAML
---
|
|
|
|
name: Gather Pull Request Metadata
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
env:
|
|
PULL_REQUEST_METADATA_DIR: pull_request
|
|
PULL_REQUEST_METADATA_FILE: metadata
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
gather-metadata:
|
|
if: github.repository == 'systemd/systemd'
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Repository checkout
|
|
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Store PR number in file
|
|
run: |
|
|
mkdir -p ./${{ env.PULL_REQUEST_METADATA_DIR }}
|
|
echo ${{ github.event.number }} >./${{ env.PULL_REQUEST_METADATA_DIR }}/${{ env.PULL_REQUEST_METADATA_FILE }}
|
|
|
|
- name: Upload Pull Request Metadata artifact
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
|
|
with:
|
|
name: ${{ env.PULL_REQUEST_METADATA_FILE }}
|
|
path: ${{ env.PULL_REQUEST_METADATA_DIR }}
|
|
retention-days: 1
|