Skip to content

Commit 450e371

Browse files
authored
Create test1.yml
1 parent 16476c0 commit 450e371

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test1.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Test 1 workflow
4+
5+
# Controls when the workflow will run
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
issueNumber:
10+
description: 'The issue number to add a comment to'
11+
required: true
12+
commentText:
13+
description: 'The text of the comment to add'
14+
required: true
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
- name: Get GitHub app token
26+
uses: tibdex/github-app-token@v1.3.0
27+
id: generate_token
28+
with:
29+
app_id: ${{ secrets.GMODNET_GITHUB_BOT_ID }}
30+
private_key: ${{ secrets.GMODNET_GITHUB_BOT_KEY }}
31+
32+
- name: Add comment
33+
env:
34+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
35+
run: gh issue comment ${{ github.event.inputs.issueNumber }} --body "${{ github.event.inputs.commentText }}"

0 commit comments

Comments
 (0)