File tree Expand file tree Collapse file tree 3 files changed +40
-43
lines changed
Expand file tree Collapse file tree 3 files changed +40
-43
lines changed Original file line number Diff line number Diff line change 1+ name : " Test Increment Action"
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ variable-name :
7+ description : " Name of the variable to increment"
8+ required : true
9+ default : " MY_VARIABLE"
10+ increment-amount :
11+ description : " Amount to increment by"
12+ required : false
13+ default : 1
14+ action-tag :
15+ description : " Tag for the action"
16+ required : true
17+ default : " main"
18+
19+ jobs :
20+ increment-test :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@v3
25+
26+ - name : Test increment action
27+ id : increment
28+ uses : step-security/dynamic-uses@v1
29+ with :
30+ uses : step-security/increment@${{ github.event.inputs.action-tag }}
31+ with : >
32+ {
33+ "name": "${{ github.event.inputs.variable-name }}",
34+ "amount": "${{ github.event.inputs.increment-amount }}",
35+ "token": "${{ secrets.REPO_ACCESS_TOKEN }}"
36+ }
37+
38+ - name : Output incremented value
39+ run : |
40+ echo "New value: ${{ steps.increment.outputs.value }}"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments