Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/GitHub workflows #1234

Merged
merged 7 commits into from
Nov 14, 2023
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
30 changes: 11 additions & 19 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
"customizations": {
"vscode": {
"extensions": [
"golang.go",
"esbenp.prettier-vscode",
"yzhang.markdown-all-in-one",
"joselitofilho.ginkgotestexplorer",
"fsevenm.run-it-on",
"markis.code-coverage",
"tooltitudeteam.tooltitude"
],
"golang.go",
"esbenp.prettier-vscode",
"yzhang.markdown-all-in-one",
"joselitofilho.ginkgotestexplorer",
"fsevenm.run-it-on",
"markis.code-coverage",
"tooltitudeteam.tooltitude",
"GitHub.vscode-github-actions"
],
"settings": {
"go.lintFlags": ["--config=${containerWorkspaceFolder}/.golangci.yml"],
"go.alternateTools": {
Expand All @@ -33,20 +34,11 @@
"[go]": {
"editor.defaultFormatter": "golang.go"
},
"[json][jsonc]": {
"[json][jsonc][github-actions-workflow]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one",
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
}
}
}
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/close_stale.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: "Close stale issues and PRs"
name: Close stale issues and PRs

on:
schedule:
- cron: "0 4 * * *"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
stale:
runs-on: ubuntu-latest
Expand All @@ -23,10 +27,3 @@ jobs:
days-before-pr-close: 10
exempt-all-milestones: true
operations-per-run: 60

- name: Delete old runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
delete_workflow_pattern: close_stale.yml
16 changes: 9 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches:
branches:
- main
pull_request:
branches:
branches:
- main
schedule:
- cron: '33 15 * * 1'
- cron: "33 15 * * 1"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

# Use Golang cache
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version-file: go.mod

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/delete-workflow-runs.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: docs

on:
push:
branches:
- '**'
- "**"
tags:
- v*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/fork-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
sync:
Expand Down Expand Up @@ -35,10 +36,3 @@ jobs:
shell: bash
run: |
gh repo sync ${{ github.repository }} -b main

- name: Delete old runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
delete_workflow_pattern: fork-sync.yml
26 changes: 12 additions & 14 deletions .github/workflows/mirror-repo.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: mirror git repo

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
mirror:
runs-on: ubuntu-latest
if: github.repository_owner == '0xERR0R'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://codeberg.org/0xERR0R/blocky.git'
GIT_USERNAME: 0xERR0R
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}

- name: Delete old runs
uses: Mattraks/delete-workflow-runs@v2
- uses: yesolutions/mirror-action@master
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
delete_workflow_pattern: mirror-repo.yml
REMOTE: "https://codeberg.org/0xERR0R/blocky.git"
GIT_USERNAME: 0xERR0R
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- v*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down