Skip to content

Commit

Permalink
chore: Improve CI (#420)
Browse files Browse the repository at this point in the history
* Add files to ignore
* Add condition when to run
  • Loading branch information
axunonb authored Jun 10, 2024
1 parent 30b3a28 commit 9fb432c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CheckWikiUpdates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
check-wiki:
if: github.repository == 'axuno/SmartFormat'
if: ${{ github.repository == 'axuno/SmartFormat' }}
runs-on: ubuntu-latest
steps:
- name: Checkout wiki
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
ref: ${{ github.ref }}
- name: Create issue if wiki was updated
id: create-issue
if: ${{ env.commitCount }} != '0'
if: ${{ env.commitCount != '0' }}
uses: JasonEtco/create-an-issue@v2.9.2
env:
GITHUB_TOKEN: ${{ secrets.WIKI_CHECK_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/SonarCloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: SonarCloud
on:
push:
branches: [ main, 'version/**', 'pr/**', 'pr-**' ]
paths-ignore:
- '**/*.md'
pull_request:
branches: [ main, 'version/**', 'pr/**', 'pr-**' ]
types: [opened, synchronize, reopened]
paths-ignore:
- '**/*.md'
jobs:
build:
name: Build
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/Wiki_Update_Issue_Template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ assignees: ''
Number of commits
made to the Wiki in the last 24 hours: **{{ env.CommitCount }}**

The wiki was last updated on
```
Date: {{ env.UpdatedOn }}
Commit Hash: [{{ env.Hash }}](https://github.com/axuno/SmartFormat/wiki/_compare/{{ env.Hash }})
Commit Message: "{{ env.CommitMessage }}"
```
These are the details of the latest commit:

| Item | Value |
|:---|:---|
| Date | {{ env.UpdatedOn }} |
| Hash | [{{ env.Hash }}](https://github.com/axuno/SmartFormat/wiki/_compare/{{ env.Hash }}) |
| Message | {{ env.CommitMessage }} |
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: 3.0.0.{build} # Only change for mayor versions (e.g. 4.0.0)
skip_commits:
files:
- '**/*.md'
- '.github/**/*'
environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
matrix:
Expand Down

0 comments on commit 9fb432c

Please sign in to comment.