Skip to content

Commit 4730fd6

Browse files
committed
added version
1 parent 7b14d95 commit 4730fd6

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

examples/git-auto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
api-key: ${{ secrets.RUNLOOP_API_KEY }}
2222
source-type: git
23+
agent-version: 1.0.0
2324
# agent-name defaults to repository name if not provided
2425
# git-repository defaults to current repository
2526
# git-ref defaults to current commit SHA

examples/git-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
api-key: ${{ secrets.RUNLOOP_API_KEY }}
2222
source-type: git
23+
agent-version: ${{ github.event.release.tag_name }}
2324
agent-name: my-agent-${{ github.event.release.tag_name }}
2425
# git-ref automatically uses the release tag
2526
setup-commands: |

examples/single-file.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
with:
2424
api-key: ${{ secrets.RUNLOOP_API_KEY }}
2525
source-type: file
26+
agent-version: 1.0.0
2627
agent-name: my-script-agent
2728
path: ./scripts/agent.sh # Path to single file
2829
setup-commands: |

examples/tar-agent.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
with:
4646
api-key: ${{ secrets.RUNLOOP_API_KEY }}
4747
source-type: tar
48+
agent-version: 1.0.0
4849
path: agent.tar.gz
4950
agent-name: my-tar-agent
5051
setup-commands: |
@@ -82,6 +83,7 @@ jobs:
8283
with:
8384
api-key: ${{ secrets.RUNLOOP_API_KEY }}
8485
source-type: tar
86+
agent-version: ${{ steps.build.outputs.agent-version }}
8587
path: ${{ steps.build.outputs.archive-path }}
8688
agent-name: built-agent-${{ steps.build.outputs.agent-version }}
8789

@@ -102,6 +104,7 @@ jobs:
102104
with:
103105
api-key: ${{ secrets.RUNLOOP_API_KEY }}
104106
source-type: tar
107+
agent-version: 1.0.0
105108
path: agent.tar
106109

107110
deploy-with-exclusions:
@@ -128,6 +131,7 @@ jobs:
128131
with:
129132
api-key: ${{ secrets.RUNLOOP_API_KEY }}
130133
source-type: tar
134+
agent-version: 1.0.0
131135
path: agent.tar.gz
132136
object-ttl-days: 30
133137
is-public: false
@@ -150,4 +154,5 @@ jobs:
150154
with:
151155
api-key: ${{ secrets.RUNLOOP_API_KEY }}
152156
source-type: tar
157+
agent-version: 1.0.0
153158
path: ./artifacts/agent.tar.gz

0 commit comments

Comments
 (0)