|
32 | 32 | fi |
33 | 33 |
|
34 | 34 | # Fail if neither preview nor release is set |
35 | | - if [[ "$LABELS" != *"preview"* && "$LABELS" != *"release"* ]]; then |
36 | | - echo "❌ PR must have either 'preview' or 'release' label." |
| 35 | + if [[ "$LABELS" != *"preview"* && "$LABELS" != *"release"* && "$LABELS" != *"norelease"* ]]; then |
| 36 | + echo "❌ PR must have 'preview', 'release' or 'norelease' label." |
37 | 37 | exit 1 |
38 | 38 | fi |
39 | 39 |
|
|
52 | 52 | else |
53 | 53 | echo "BUMP=patch" >> $GITHUB_ENV |
54 | 54 | fi |
| 55 | +
|
| 56 | + # Set NORELEASE as output of this step |
| 57 | + echo "NORELEASE=${{ env.NORELEASE }}" >> $GITHUB_ENV |
55 | 58 | env: |
56 | 59 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
57 | 60 |
|
|
68 | 71 |
|
69 | 72 | outputs: |
70 | 73 | new_version: ${{ steps.tag_bump.outputs.new_tag }} |
| 74 | + norelease: ${{ steps.tag_bump.outputs.norelease }} |
| 75 | + |
71 | 76 |
|
72 | 77 | publish-types: |
| 78 | + if: needs.generate-version.outputs.norelease != 'true' |
73 | 79 | uses: ./.github/workflows/reusable-publish.yml |
74 | 80 | with: |
75 | 81 | project_path: src/Blake.Types/Blake.Types.csproj |
|
78 | 84 | needs: generate-version |
79 | 85 |
|
80 | 86 | publish-markdownparser: |
| 87 | + if: needs.generate-version.outputs.norelease != 'true' |
81 | 88 | uses: ./.github/workflows/reusable-publish.yml |
82 | 89 | with: |
83 | 90 | project_path: src/Blake.MarkdownParser/Blake.MarkdownParser.csproj |
|
88 | 95 | needs: [publish-types, generate-version] |
89 | 96 |
|
90 | 97 | publish-buildtools: |
| 98 | + if: needs.generate-version.outputs.norelease != 'true' |
91 | 99 | uses: ./.github/workflows/reusable-publish.yml |
92 | 100 | with: |
93 | 101 | project_path: src/Blake.BuildTools/Blake.BuildTools.csproj |
|
98 | 106 | needs: [publish-markdownparser, generate-version] |
99 | 107 |
|
100 | 108 | publish-cli: |
| 109 | + if: needs.generate-version.outputs.norelease != 'true' |
101 | 110 | uses: ./.github/workflows/reusable-publish.yml |
102 | 111 | with: |
103 | 112 | project_path: src/Blake.CLI/Blake.CLI.csproj |
|
0 commit comments