File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed
Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint Code Base
2+
3+ #
4+ # Documentation:
5+ # https://help.github.com/en/articles/workflow-syntax-for-github-actions
6+ #
7+
8+ # ############################
9+ # Start the job on all push #
10+ # ############################
11+ on :
12+ push :
13+ branches-ignore : [ master ]
14+ # Remove the line above to run when pushing to master
15+ pull_request :
16+ branches : [ master ]
17+
18+ # ##############
19+ # Set the Job #
20+ # ##############
21+ jobs :
22+ build :
23+ # Name the Job
24+ name : Lint Code Base
25+ # Set the agent to run on
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout Code
29+ uses : actions/checkout@v2
30+ with :
31+ fetch-depth : 0
32+ - name : Lint Code Base
33+ uses : github/super-linter@v3
34+ env :
35+ VALIDATE_ALL_CODEBASE : false
36+ DEFAULT_BRANCH : master
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Version Update
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *.**'
7+
8+ jobs :
9+ update-version :
10+ name : Update VERSION
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout repo
14+ uses : actions/checkout@v2
15+ with :
16+ ref : master
17+ fetch-depth : 0
18+
19+ - name : Edit version.txt
20+ run : echo "VERSION = \"$(git describe --tags `git rev-list --tags --max-count=1`)\"" > version.txt
21+
22+ - name : Commit update
23+ uses : stefanzweifel/git-auto-commit-action@v4
24+ with :
25+ branch : git-version-updates
26+ skip_dirty_check : true
27+ commit_message : ' Update VERSION'
28+ commit_options : ' --no-verify --signoff'
29+ commit_user_name : GitHub Bot
30+ commit_user_email :
[email protected] 31+ commit_author :
GitHub Bot <[email protected] >
You can’t perform that action at this time.
0 commit comments