File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : GitHub Actions Demo
2+ run-name : New Release Workflow
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version number for the new release'
8+ required : true
9+ default : ' 2.0.0'
10+ commit_hash :
11+ description : ' Commit hash for the release'
12+ required : true
13+ default : ' '
14+ message :
15+ description : ' Release message'
16+ required : true
17+ default : ' '
18+ jobs :
19+ run-test :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v4
24+ with :
25+ ref : ${{ github.event.inputs.commit_hash || github.sha }}
26+
27+ - name : Run Tests
28+ run : mvn test
29+
30+
31+ - run : echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
32+ - run : echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
33+ - run : echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
34+ - name : Check out repository code
35+ uses : actions/checkout@v4
36+ - run : echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
37+ - run : echo "🖥️ The workflow is now ready to test your code on the runner."
38+ - name : List files in the repository
39+ run : |
40+ ls ${{ github.workspace }}
41+ - run : echo "🍏 This job's status is ${{ job.status }}."
You can’t perform that action at this time.
0 commit comments