File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Release Preflight
2-
3- on :
4- push :
5- tags :
6- - ' v*'
7- workflow_dispatch :
8- inputs :
9- tag :
10- description : " Tag to validate (e.g. v0.1.4)"
11- required : true
12- type : string
13-
14- permissions :
15- contents : read
16-
17- jobs :
18- preflight :
19- name : Validate release packaging consistency
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23- with :
24- fetch-depth : 0
25-
26- - uses : actions/setup-python@8d9ed9a17401078d59e773f1302b3d458f23a399 # v5.5.0
27- with :
28- python-version : ' 3.11'
29-
30- - name : Resolve tag
31- id : vars
32- run : |
33- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
34- echo "tag=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
35- else
36- echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
37- fi
38-
39- - name : Run preflight checks
40- run : |
41- python scripts/release_preflight.py --tag "${{ steps.vars.outputs.tag }}"
1+ name : Release Preflight\n\non:\n push:\n tags:\n - 'v*'\n workflow_dispatch:\n inputs:\n tag:\n description: "Tag to validate (e.g. v0.1.4)"\n required: true\n type: string\n\npermissions:\n contents: read\n\njobs:\n preflight:\n name: Validate release packaging consistency\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4 # v4.2.2\n with:\n fetch-depth: 0\n\n - uses: actions/setup-python@v5 # v5.5.0\n with:\n python-version: '3.11'\n\n - name: Resolve tag\n id: vars\n run: |\n if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then\n echo "tag=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"\n else\n echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"\n fi\n\n - name: Run preflight checks\n run: |\n python scripts/release_preflight.py --tag "${{ steps.vars.outputs.tag }}"\n
You can’t perform that action at this time.
0 commit comments