Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit 7a551a5

Browse files
chore: update global workflows (#179)
1 parent cdc479e commit 7a551a5

File tree

10 files changed

+147
-155
lines changed

10 files changed

+147
-155
lines changed

.github/pr_release_template.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/auto-create-pr.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/automerge.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/ci-docker.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ name: CI Docker
2222

2323
on:
2424
pull_request:
25-
branches: [master, nightly]
25+
branches: [master]
2626
types: [opened, synchronize, reopened]
2727
push:
28-
branches: [master, nightly]
28+
branches: [master]
2929
workflow_dispatch:
3030

3131
concurrency:
@@ -103,8 +103,9 @@ jobs:
103103
- check_dockerfiles
104104
outputs:
105105
publish_release: ${{ steps.setup_release.outputs.publish_release }}
106-
release_build: ${{ steps.setup_release.outputs.release_build }}
106+
release_body: ${{ steps.setup_release.outputs.release_body }}
107107
release_commit: ${{ steps.setup_release.outputs.release_commit }}
108+
release_generate_release_notes: ${{ steps.setup_release.outputs.release_generate_release_notes }}
108109
release_tag: ${{ steps.setup_release.outputs.release_tag }}
109110
release_version: ${{ steps.setup_release.outputs.release_version }}
110111
runs-on: ubuntu-latest
@@ -114,7 +115,7 @@ jobs:
114115

115116
- name: Setup Release
116117
id: setup_release
117-
uses: LizardByte/setup-release-action@v2024.520.181643
118+
uses: LizardByte/setup-release-action@v2024.608.210128
118119
with:
119120
dotnet: ${{ needs.check_dockerfiles.outputs.dotnet }}
120121
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -211,8 +212,6 @@ jobs:
211212
if [[ $GITHUB_REF == refs/heads/master ]]; then
212213
TAGS="${TAGS},${BASE_TAG}:latest${{ matrix.tag }},ghcr.io/${BASE_TAG}:latest${{ matrix.tag }}"
213214
TAGS="${TAGS},${BASE_TAG}:master${{ matrix.tag }},ghcr.io/${BASE_TAG}:master${{ matrix.tag }}"
214-
elif [[ $GITHUB_REF == refs/heads/nightly ]]; then
215-
TAGS="${TAGS},${BASE_TAG}:nightly${{ matrix.tag }},ghcr.io/${BASE_TAG}:nightly${{ matrix.tag }}"
216215
else
217216
TAGS="${TAGS},${BASE_TAG}:test${{ matrix.tag }},ghcr.io/${BASE_TAG}:test${{ matrix.tag }}"
218217
fi
@@ -363,12 +362,13 @@ jobs:
363362

364363
- name: Create/Update GitHub Release
365364
if: ${{ needs.setup_release.outputs.publish_release == 'true' && steps.prepare.outputs.artifacts == 'true' }}
366-
uses: LizardByte/create-release-action@v2024.520.180003
365+
uses: LizardByte/create-release-action@v2024.609.5014
367366
with:
368367
allowUpdates: true
369368
artifacts: "*artifacts/*"
369+
body: ${{ needs.setup_release.outputs.release_body }}
370370
discussionCategory: announcements
371-
generateReleaseNotes: true
371+
generateReleaseNotes: ${{ needs.setup_release.outputs.release_generate_release_notes }}
372372
name: ${{ needs.setup_release.outputs.release_tag }}
373373
prerelease: true
374374
tag: ${{ needs.setup_release.outputs.release_tag }}

.github/workflows/codeql.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ name: "CodeQL"
99

1010
on:
1111
push:
12-
branches: ["master", "nightly"]
12+
branches: ["master"]
1313
pull_request:
14-
branches: ["master", "nightly"]
14+
branches: ["master"]
1515
schedule:
1616
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
1717

@@ -140,9 +140,12 @@ jobs:
140140
submodules: recursive
141141

142142
- name: Setup msys2
143-
if: runner.os == 'Windows'
143+
if: >-
144+
runner.os == 'Windows' &&
145+
matrix.language == 'cpp'
144146
uses: msys2/setup-msys2@v2
145147
with:
148+
msystem: ucrt64
146149
update: true
147150

148151
# Initializes the CodeQL tools for scanning.
@@ -157,6 +160,10 @@ jobs:
157160
# yamllint disable-line rule:line-length
158161
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
159162
# queries: security-extended,security-and-quality
163+
config: |
164+
paths-ignore:
165+
- node_modules
166+
- third-party
160167
161168
# Pre autobuild
162169
# create a file named .codeql-prebuild-${{ matrix.language }}.sh in the root of your repository
@@ -180,3 +187,26 @@ jobs:
180187
uses: github/codeql-action/analyze@v3
181188
with:
182189
category: "/language:${{matrix.language}}"
190+
output: sarif-results
191+
upload: failure-only
192+
193+
- name: filter-sarif
194+
uses: advanced-security/filter-sarif@v1
195+
with:
196+
input: sarif-results/${{ matrix.language }}.sarif
197+
output: sarif-results/${{ matrix.language }}.sarif
198+
patterns: |
199+
-node_modules/**
200+
-third\-party/**
201+
202+
- name: Upload SARIF
203+
uses: github/codeql-action/upload-sarif@v3
204+
with:
205+
sarif_file: sarif-results/${{ matrix.language }}.sarif
206+
207+
- name: Upload loc as a Build Artifact
208+
uses: actions/upload-artifact@v4
209+
with:
210+
name: sarif-results-${{ matrix.language }}-${{ runner.os }}
211+
path: sarif-results
212+
retention-days: 1

.github/workflows/python-flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ name: flake8
99

1010
on:
1111
pull_request:
12-
branches: [master, nightly]
12+
branches: [master]
1313
types: [opened, synchronize, reopened]
1414

1515
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
16+
group: "${{ github.workflow }}-${{ github.ref }}"
1717
cancel-in-progress: true
1818

1919
jobs:

.github/workflows/release-notifier.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ name: Release Notifications
99

1010
on:
1111
release:
12-
types: [published]
13-
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onevent_nametypes
12+
types:
13+
- released # this triggers when a release is published, but does not include prereleases or drafts
1414

1515
jobs:
1616
discord:
1717
if: >-
1818
startsWith(github.repository, 'LizardByte/') &&
19-
not(github.event.release.prerelease) &&
20-
not(github.event.release.draft)
19+
!github.event.release.prerelease &&
20+
!github.event.release.draft
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: discord
@@ -35,8 +35,8 @@ jobs:
3535
facebook_group:
3636
if: >-
3737
startsWith(github.repository, 'LizardByte/') &&
38-
not(github.event.release.prerelease) &&
39-
not(github.event.release.draft)
38+
!github.event.release.prerelease &&
39+
!github.event.release.draft
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: facebook-post-action
@@ -52,8 +52,8 @@ jobs:
5252
facebook_page:
5353
if: >-
5454
startsWith(github.repository, 'LizardByte/') &&
55-
not(github.event.release.prerelease) &&
56-
not(github.event.release.draft)
55+
!github.event.release.prerelease &&
56+
!github.event.release.draft
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: facebook-post-action
@@ -69,8 +69,8 @@ jobs:
6969
reddit:
7070
if: >-
7171
startsWith(github.repository, 'LizardByte/') &&
72-
not(github.event.release.prerelease) &&
73-
not(github.event.release.draft)
72+
!github.event.release.prerelease &&
73+
!github.event.release.draft
7474
runs-on: ubuntu-latest
7575
steps:
7676
- name: reddit
@@ -89,8 +89,8 @@ jobs:
8989
twitter:
9090
if: >-
9191
startsWith(github.repository, 'LizardByte/') &&
92-
not(github.event.release.prerelease) &&
93-
not(github.event.release.draft)
92+
!github.event.release.prerelease &&
93+
!github.event.release.draft
9494
runs-on: ubuntu-latest
9595
steps:
9696
- name: twitter

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Update Changelog
27-
uses: LizardByte/update-changelog-action@v2024.520.183314
27+
uses: LizardByte/update-changelog-action@v2024.609.4705
2828
with:
2929
changelogBranch: changelog
3030
changelogFile: CHANGELOG.md

0 commit comments

Comments
 (0)