-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.04 KB
/
pack-utilities.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Pack DfE.CoreLibs.Utilities
on:
workflow_run:
workflows: ["Build DfE.CoreLibs.Utilities"]
types:
- completed
jobs:
build-and-package:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set Pre-Release Suffix (if Pull Request)
id: set_suffix
run: |
if [[ "${{ github.event.workflow_run.event }}" == "pull_request" ]]; then
echo "This is a pull request. Setting suffix to '-beta'."
echo "CUSTOM_SUFFIX=-beta" >> $GITHUB_ENV
else
echo "This is not a pull request. No suffix needed."
echo "CUSTOM_SUFFIX=" >> $GITHUB_ENV
fi
- name: Call NuGet Package Template
uses: ./.github/workflows/nuget-package-template.yml
with:
project_name: DfE.CoreLibs.Utilities
project_path: src/DfE.CoreLibs.Utilities
nuget_package_name: DfE.CoreLibs.Utilities
env:
CUSTOM_SUFFIX: ${{ env.CUSTOM_SUFFIX }}