Setup Dependabot and update actions (#1121)

* Update build action

* Update comment action

* Update website linter

* Setup Dependabot
This commit is contained in:
blu3 authored and GitHub committed 2025-07-13 16:36:53 +02:00
1 parent 04aec7be69
commit a748ffeb7e
5 files changed
+96 -71

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/Website"
schedule:
interval: "daily"
+12 -11
View File
@@ -2,29 +2,30 @@ name: Test Build Extension
on: on:
push: push:
branches: [main] branches:
- main
paths: paths:
- Extensions/combined/** - Extensions/combined/**
pull_request: pull_request:
branches: [main] branches:
- main
paths: paths:
- Extensions/combined/** - Extensions/combined/**
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
defaults: defaults:
run: run:
working-directory: ./Extensions/combined working-directory: ./Extensions/combined
steps: steps:
- name: Checkout - name: Checkout repository
uses: actions/checkout@main uses: actions/checkout@v4
- name: Setup Node 20 - name: Setup Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: '20.x' node-version: '20.x'
@@ -34,19 +35,19 @@ jobs:
- name: Build extension - name: Build extension
run: npm run build run: npm run build
- name: 'Upload Chrome artifact' - name: Upload Chrome artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ryd-chrome name: ryd-chrome
path: ./Extensions/combined/dist/chrome path: ./Extensions/combined/dist/chrome
- name: 'Upload Firefox artifact' - name: Upload Firefox artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ryd-firefox name: ryd-firefox
path: ./Extensions/combined/dist/firefox path: ./Extensions/combined/dist/firefox
- name: 'Upload Safari artifact' - name: Upload Safari artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ryd-safari name: ryd-safari
-53
View File
@@ -1,53 +0,0 @@
name: commentCommands
on:
issue_comment:
types: created
jobs:
assign-commenter:
runs-on: ubuntu-latest
if: |
contains(github.event.comment.body, '/assignme') ||
contains(github.event.comment.body, '/assign me')
steps:
- name: Assigning to commenter
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \
-d '{"assignees":["${{ github.event.comment.user.login }}"]}'
request-issue-framing-improvement:
runs-on: ubuntu-latest
if: |
contains(github.event.comment.body,'/improve') && (
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'CONTRIBUTOR' )
steps:
- name: request-issue-framing-improvement
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \
-d '{"body":"This issue is put on hold due to low quality. No reviews or fixes will be performed at this time. Eventually, it will be closed. While we appreciate your effort writing, we are not able to further investigate it. Please improve it by writing a better title or providing more details, and you may re-open it."}'
add-label-duplicate:
runs-on: ubuntu-latest
if: |
contains(github.event.comment.body, '/duplicate') && (
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association != 'CONTRIBUTOR' )
steps:
- name: add-label-duplicate
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \
-d '{"labels":["duplicate"]}'
+57
View File
@@ -0,0 +1,57 @@
name: Comment Commands
on:
issue_comment:
types: [created]
jobs:
assign-commenter:
runs-on: ubuntu-24.04
if: |
contains(github.event.comment.body, '/assignme') ||
contains(github.event.comment.body, '/assign me')
steps:
- name: Assigning commenter
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \
-d '{"assignees":["${{ github.event.comment.user.login }}"]}'
request-issue-framing-improvement:
runs-on: ubuntu-24.04
if: |
contains(github.event.comment.body, '/improve') && (
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association == 'CONTRIBUTOR'
)
steps:
- name: Request issue framing improvement
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \
-d '{"body":"This issue is put on hold due to low quality. No reviews or fixes will be performed at this time. Eventually, it will be closed. While we appreciate your effort writing, we are not able to further investigate it. Please improve it by writing a better title or providing more details, and you may re-open it."}'
add-duplicate-label:
runs-on: ubuntu-24.04
if: |
contains(github.event.comment.body, '/duplicate') && (
github.event.comment.author_association == 'OWNER' ||
github.event.comment.author_association == 'COLLABORATOR' ||
github.event.comment.author_association != 'CONTRIBUTOR'
)
steps:
- name: Add duplicate label
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \
-d '{"labels":["duplicate"]}'
+13 -7
View File
@@ -4,22 +4,28 @@ name: Website Lint
on: on:
push: push:
branches: [main] branches:
- main
paths: paths:
- Website/** - Website/**
pull_request: pull_request:
branches: [main] branches:
- main
paths: paths:
- Website/** - Website/**
jobs: jobs:
weblint: weblint:
runs-on: ubuntu-latest runs-on: ubuntu-24.04
steps: steps:
- uses: actions/checkout@main - name: Checkout repository
- run: npm install uses: actions/checkout@v4
- name: Install dependencies
run: npm install
working-directory: Website working-directory: Website
- run: npm run lint
- name: Run lint
run: npm run lint
working-directory: Website working-directory: Website