chore: update global workflows (#4725)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
11
.github/workflows/_codeql.yml
vendored
11
.github/workflows/_codeql.yml
vendored
@@ -4,16 +4,13 @@
|
|||||||
# the above-mentioned repo.
|
# the above-mentioned repo.
|
||||||
|
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
permissions:
|
permissions: {}
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
|
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
|
||||||
|
|
||||||
@@ -26,3 +23,7 @@ jobs:
|
|||||||
name: CodeQL
|
name: CodeQL
|
||||||
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-codeql.yml@master
|
||||||
if: ${{ github.repository != 'LizardByte/.github' }}
|
if: ${{ github.repository != 'LizardByte/.github' }}
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|||||||
5
.github/workflows/_common-lint.yml
vendored
5
.github/workflows/_common-lint.yml
vendored
@@ -4,8 +4,7 @@
|
|||||||
# the above-mentioned repo.
|
# the above-mentioned repo.
|
||||||
|
|
||||||
name: common lint
|
name: common lint
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -19,3 +18,5 @@ jobs:
|
|||||||
name: Common Lint
|
name: Common Lint
|
||||||
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-common-lint.yml@master
|
||||||
if: ${{ github.repository != 'LizardByte/.github' }}
|
if: ${{ github.repository != 'LizardByte/.github' }}
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|||||||
8
.github/workflows/_release-notifier.yml
vendored
8
.github/workflows/_release-notifier.yml
vendored
@@ -6,8 +6,7 @@
|
|||||||
# Create a blog post for a new release and open a PR to the blog repo
|
# Create a blog post for a new release and open a PR to the blog repo
|
||||||
|
|
||||||
name: Release Notifications
|
name: Release Notifications
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -19,7 +18,10 @@ jobs:
|
|||||||
name: Update blog
|
name: Update blog
|
||||||
uses: LizardByte/.github/.github/workflows/__call-release-notifier.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-release-notifier.yml@master
|
||||||
if: github.repository_owner == 'LizardByte'
|
if: github.repository_owner == 'LizardByte'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
with:
|
||||||
|
gh_name: ${{ vars.GH_BOT_NAME }}
|
||||||
secrets:
|
secrets:
|
||||||
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GH_NAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
5
.github/workflows/_update-changelog.yml
vendored
5
.github/workflows/_update-changelog.yml
vendored
@@ -4,8 +4,7 @@
|
|||||||
# the above-mentioned repo.
|
# the above-mentioned repo.
|
||||||
|
|
||||||
name: Update changelog
|
name: Update changelog
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -27,5 +26,7 @@ jobs:
|
|||||||
github.repository_owner == 'LizardByte' &&
|
github.repository_owner == 'LizardByte' &&
|
||||||
(github.event_name == 'workflow_dispatch' ||
|
(github.event_name == 'workflow_dispatch' ||
|
||||||
(!github.event.release.prerelease && !github.event.release.draft))
|
(!github.event.release.prerelease && !github.event.release.draft))
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
secrets:
|
secrets:
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
1
.github/workflows/_update-docs.yml
vendored
1
.github/workflows/_update-docs.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
|||||||
name: Update docs
|
name: Update docs
|
||||||
uses: LizardByte/.github/.github/workflows/__call-update-docs.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-update-docs.yml@master
|
||||||
if: github.repository_owner == 'LizardByte'
|
if: github.repository_owner == 'LizardByte'
|
||||||
|
permissions: {}
|
||||||
with:
|
with:
|
||||||
readthedocs_slug: ${{ vars.READTHEDOCS_SLUG }}
|
readthedocs_slug: ${{ vars.READTHEDOCS_SLUG }}
|
||||||
secrets:
|
secrets:
|
||||||
|
|||||||
8
.github/workflows/_update-flathub-repo.yml
vendored
8
.github/workflows/_update-flathub-repo.yml
vendored
@@ -8,8 +8,7 @@
|
|||||||
# Update Flathub on release events.
|
# Update Flathub on release events.
|
||||||
|
|
||||||
name: Update Flathub repo
|
name: Update Flathub repo
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -25,7 +24,10 @@ jobs:
|
|||||||
name: Update Flathub Repo
|
name: Update Flathub Repo
|
||||||
uses: LizardByte/.github/.github/workflows/__call-update-flathub-repo.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-update-flathub-repo.yml@master
|
||||||
if: github.repository_owner == 'LizardByte'
|
if: github.repository_owner == 'LizardByte'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
with:
|
||||||
|
gh_name: ${{ vars.GH_BOT_NAME }}
|
||||||
secrets:
|
secrets:
|
||||||
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GH_NAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
8
.github/workflows/_update-homebrew-repo.yml
vendored
8
.github/workflows/_update-homebrew-repo.yml
vendored
@@ -8,8 +8,7 @@
|
|||||||
# Update Homebrew on release events.
|
# Update Homebrew on release events.
|
||||||
|
|
||||||
name: Update Homebrew repo
|
name: Update Homebrew repo
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -25,7 +24,10 @@ jobs:
|
|||||||
name: Update Homebrew repo
|
name: Update Homebrew repo
|
||||||
uses: LizardByte/.github/.github/workflows/__call-update-homebrew-repo.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-update-homebrew-repo.yml@master
|
||||||
if: github.repository_owner == 'LizardByte'
|
if: github.repository_owner == 'LizardByte'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
with:
|
||||||
|
gh_username: ${{ vars.GH_BOT_NAME }}
|
||||||
secrets:
|
secrets:
|
||||||
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GH_USERNAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
8
.github/workflows/_update-pacman-repo.yml
vendored
8
.github/workflows/_update-pacman-repo.yml
vendored
@@ -8,8 +8,7 @@
|
|||||||
# Update pacman repo on release events.
|
# Update pacman repo on release events.
|
||||||
|
|
||||||
name: Update pacman repo
|
name: Update pacman repo
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -25,7 +24,10 @@ jobs:
|
|||||||
name: Update pacman repo
|
name: Update pacman repo
|
||||||
uses: LizardByte/.github/.github/workflows/__call-update-pacman-repo.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-update-pacman-repo.yml@master
|
||||||
if: github.repository_owner == 'LizardByte'
|
if: github.repository_owner == 'LizardByte'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
with:
|
||||||
|
gh_name: ${{ vars.GH_BOT_NAME }}
|
||||||
secrets:
|
secrets:
|
||||||
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GH_NAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
7
.github/workflows/_update-winget-repo.yml
vendored
7
.github/workflows/_update-winget-repo.yml
vendored
@@ -8,8 +8,7 @@
|
|||||||
# Update Winget on release events.
|
# Update Winget on release events.
|
||||||
|
|
||||||
name: Update Winget repo
|
name: Update Winget repo
|
||||||
permissions:
|
permissions: {}
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@@ -25,5 +24,9 @@ jobs:
|
|||||||
name: Update Winget repo
|
name: Update Winget repo
|
||||||
uses: LizardByte/.github/.github/workflows/__call-update-winget-repo.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-update-winget-repo.yml@master
|
||||||
if: github.repository_owner == 'LizardByte'
|
if: github.repository_owner == 'LizardByte'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
with:
|
||||||
|
gh_name: ${{ vars.GH_BOT_NAME }}
|
||||||
secrets:
|
secrets:
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|||||||
7
.github/workflows/ci-homebrew.yml
vendored
7
.github/workflows/ci-homebrew.yml
vendored
@@ -5,6 +5,9 @@ permissions: {}
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
git_username:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
publish_release:
|
publish_release:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -22,8 +25,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
GIT_EMAIL:
|
GIT_EMAIL:
|
||||||
required: true
|
required: true
|
||||||
GIT_USERNAME:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_homebrew:
|
build_homebrew:
|
||||||
@@ -148,7 +149,7 @@ jobs:
|
|||||||
actionlint_config: "---\n# empty config"
|
actionlint_config: "---\n# empty config"
|
||||||
formula_file: ${{ github.workspace }}/homebrew/sunshine.rb
|
formula_file: ${{ github.workspace }}/homebrew/sunshine.rb
|
||||||
git_email: ${{ secrets.GIT_EMAIL }}
|
git_email: ${{ secrets.GIT_EMAIL }}
|
||||||
git_username: ${{ secrets.GIT_USERNAME }}
|
git_username: ${{ inputs.git_username }}
|
||||||
publish: false
|
publish: false
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
validate: true
|
validate: true
|
||||||
|
|||||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -50,16 +50,16 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
uses: LizardByte/.github/.github/workflows/__call-docker.yml@master
|
uses: LizardByte/.github/.github/workflows/__call-docker.yml@master
|
||||||
with:
|
with:
|
||||||
|
docker_hub_username: ${{ vars.DOCKER_HUB_USERNAME }}
|
||||||
|
gh_bot_name: ${{ vars.GH_BOT_NAME }}
|
||||||
maximize_build_space: true
|
maximize_build_space: true
|
||||||
publish_release: ${{ needs.release-setup.outputs.publish_release }}
|
publish_release: ${{ needs.release-setup.outputs.publish_release }}
|
||||||
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
||||||
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
||||||
release_version: ${{ needs.release-setup.outputs.release_version }}
|
release_version: ${{ needs.release-setup.outputs.release_version }}
|
||||||
secrets:
|
secrets:
|
||||||
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
||||||
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||||
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
GH_BOT_NAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@@ -80,6 +80,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
uses: ./.github/workflows/ci-homebrew.yml
|
uses: ./.github/workflows/ci-homebrew.yml
|
||||||
with:
|
with:
|
||||||
|
git_username: ${{ vars.GH_BOT_NAME }}
|
||||||
publish_release: ${{ needs.release-setup.outputs.publish_release }}
|
publish_release: ${{ needs.release-setup.outputs.publish_release }}
|
||||||
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
||||||
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
||||||
@@ -87,7 +88,6 @@ jobs:
|
|||||||
secrets:
|
secrets:
|
||||||
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
GIT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GIT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GIT_USERNAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
@@ -312,7 +312,7 @@ jobs:
|
|||||||
actionlint_config: "---\n# empty config"
|
actionlint_config: "---\n# empty config"
|
||||||
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
|
formula_file: ${{ github.workspace }}/homebrew/sunshine-beta.rb
|
||||||
git_email: ${{ secrets.GH_BOT_EMAIL }}
|
git_email: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
git_username: ${{ secrets.GH_BOT_NAME }}
|
git_username: ${{ vars.GH_BOT_NAME }}
|
||||||
publish: true
|
publish: true
|
||||||
token: ${{ secrets.GH_BOT_TOKEN }}
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
validate: false
|
validate: false
|
||||||
|
|||||||
@@ -35,5 +35,5 @@ jobs:
|
|||||||
nodetail: true
|
nodetail: true
|
||||||
nofail: false
|
nofail: false
|
||||||
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
|
title: ${{ github.event.repository.name }} ${{ github.ref_name }} Released
|
||||||
username: ${{ secrets.DISCORD_USERNAME }}
|
username: ${{ vars.DISCORD_USERNAME }}
|
||||||
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
|
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK_MOONLIGHT }}
|
||||||
|
|||||||
2
.github/workflows/update-pages.yml
vendored
2
.github/workflows/update-pages.yml
vendored
@@ -38,9 +38,9 @@ jobs:
|
|||||||
uses: LizardByte/LizardByte.github.io/.github/workflows/jekyll-build.yml@master
|
uses: LizardByte/LizardByte.github.io/.github/workflows/jekyll-build.yml@master
|
||||||
secrets:
|
secrets:
|
||||||
GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GH_BOT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GH_BOT_NAME: ${{ secrets.GH_BOT_NAME }}
|
|
||||||
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
with:
|
with:
|
||||||
clean_gh_pages: true
|
clean_gh_pages: true
|
||||||
|
gh_bot_name: ${{ vars.GH_BOT_NAME }}
|
||||||
site_artifact: 'prep'
|
site_artifact: 'prep'
|
||||||
target_branch: 'gh-pages'
|
target_branch: 'gh-pages'
|
||||||
|
|||||||
Reference in New Issue
Block a user