Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
- "github-actions"
open-pull-requests-limit: 10

# Python dependencies via pip
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
- "python"
open-pull-requests-limit: 10
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- main
pull_request:

permissions:
contents: read

jobs:
build:

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/discord_issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ on:
types:
- opened
- closed

permissions:
issues: read

jobs:
notify:
if: github.repository_owner == 'novem-code'
runs-on: ubuntu-latest
steps:
- name: Send issue notification to Discord
Expand Down Expand Up @@ -33,7 +38,7 @@ jobs:
--arg url "$ISSUE_URL" \
--arg icon "<:devissue:1275356587946545172>" \
--arg action "$ACTION_TEXT" \
'{content: "\($icon) \($repo) > [Issue #\($number): \($title)](\($url)) \($action)"}')
'{content: "\($icon) \($repo) > [Issue #\($number): \($title)](<\($url)>) \($action)"}')
# Send the notification to Discord
curl -H "Content-Type: application/json" \
-X POST \
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/discord_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ on:
# - synchronize
- closed

permissions:
pull-requests: read

jobs:
notify:
if: github.repository_owner == 'novem-code'
uses: novem-code/github-actions/.github/workflows/discord_pr.yml@main
with:
pr_title: ${{ github.event.pull_request.title }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/discord_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ on:
branches:
- main

permissions:
contents: read

jobs:
notify_push:
if: github.ref == 'refs/heads/main' && github.event_name == 'push' && !startsWith(github.event.head_commit.message, 'Merge pull request')
if: github.repository_owner == 'novem-code' && github.ref == 'refs/heads/main' && github.event_name == 'push' && !startsWith(github.event.head_commit.message, 'Merge pull request')
uses: novem-code/github-actions/.github/workflows/discord_push.yml@v1
with:
branch_name: 'main'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [ "main" ]
pull_request:

permissions:
contents: read

jobs:
check:
name: "Nix Checks"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

- name: Send release notification to Discord
if: success()
if: success() && github.repository_owner == 'novem-code'
env:
RELEASE_NAME: ${{ github.event.release.name }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
Expand All @@ -119,7 +119,7 @@ jobs:
--arg name "$RELEASE_NAME" \
--arg url "$RELEASE_URL" \
--arg icon "🚀" \
'{content: "\($icon) \($repo) > [\($tag): \($name)](\($url)) has been released!"}')
'{content: "\($icon) \($repo) > [\($tag): \($name)](<\($url)>) has been released!"}')
curl -H "Content-Type: application/json" \
-X POST \
-d "$MESSAGE" \
Expand Down