Skip to content

Commit f63c438

Browse files
dist added
1 parent eab1983 commit f63c438

File tree

3 files changed

+40
-43
lines changed

3 files changed

+40
-43
lines changed

.github/workflows/increament.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}"

.github/workflows/release.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)