Skip to content

Commit

Permalink
Merge pull request #304 from DorielRivalet/main
Browse files Browse the repository at this point in the history
backup
  • Loading branch information
DorielRivalet authored Feb 23, 2024
2 parents 5754834 + a856398 commit 4c33bc4
Show file tree
Hide file tree
Showing 149 changed files with 19,067 additions and 10,205 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/automate-git-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@ on:
schedule:
- cron: '0 0 1 */3 *' # Run every 3 months at 00:00 UTC on the 1st day of the month

# https://stackoverflow.com/questions/63612155/how-do-i-trigger-a-scheduled-action-on-a-specific-branch
jobs:
run_scripts:
runs-on: ubuntu-latest
name: Update Git stats images with the latest commits
permissions:
pull-requests: write
contents: write
steps:
# https://stackoverflow.com/questions/62334460/git-history-in-a-github-action
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: release
fetch-depth: 0 # get full stats instead of last commit

- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git switch release
- name: Check if commit was made by github-actions[bot]
id: check_last_commit_author
Expand Down Expand Up @@ -78,7 +82,7 @@ jobs:
working-directory: ./scripts

- name: Create git_anonymized.txt artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: git-text-file-anonymized
path: ./scripts/input/git_anonymized.txt
Expand All @@ -102,7 +106,7 @@ jobs:
# TODO: Remove?
- name: Cache Ruby gems
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./scripts/dependencies/vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile.lock') }}
Expand All @@ -122,14 +126,19 @@ jobs:
run: rm ./scripts/input/git_anonymized.txt

- name: Generate image artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: generated-git-stats-images
path: ./scripts/output
retention-days: 1

- name: Commit and push changes
run: |
git add ./scripts/output/commit_types.png ./scripts/output/commits_over_time.png ./scripts/output/commits_per_day_of_week.png ./scripts/output/commits_per_hour.png
git commit -m "chore(scripts): update git statistics images"
git push
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'chore(bot): update git statistics images'
title: 'Update git statistics images'
reviewers: DorielRivalet
branch: create-pull-request/automate-git-stats
base: release
add-paths: |
./scripts/output/*.png
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ jobs:
runs-on: windows-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu' # Alternative distribution options are available.
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeowners-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checks-out your repository, which is validated in the next step
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: GitHub CODEOWNERS Validator
uses: mszostok/codeowners-validator@v0.7.4
# input parameters
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
debug: true
languages: ${{ matrix.language }}
Expand All @@ -57,7 +57,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -73,6 +73,6 @@ jobs:
# run: dotnet build /p:UseSharedCompilation=false

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
dotnet-version: [ '6.0.x' ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/github-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
steps:
-
name: Check GitHub Status
uses: crazy-max/ghaction-github-status@v3
uses: crazy-max/ghaction-github-status@v4
with:
overall_threshold: minor
pages_threshold: partial_outage
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v4
- uses: dessant/lock-threads@v5
with:
github-token: ${{ github.token }}
issue-inactive-days: '14'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mind-your-language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: profanity check
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Profanity check step
uses: tailaiw/mind-your-language-action@v1.0.3
env:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ name: 'Close stale issues and PRs'
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
days-before-stale: 30
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ scripts/input/
# composer
vendor/

# ignore Clowd.Squirrel exe
# ignore Clowd.Squirrel / Velopack exe
Update.exe

# ignore claudiaIDE
Expand Down Expand Up @@ -153,7 +153,7 @@ DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory and Clowd.Squirrel
# Click-Once directory and Clowd.Squirrel / Velopack
publish/

# Publish Web Output
Expand Down
Loading

0 comments on commit 4c33bc4

Please sign in to comment.