Skip to content

Commit 278f827

Browse files
feat: updated example (shubhaamgupta11#12)
1 parent 195ada0 commit 278f827

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

.github/workflows/example.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
name: Monitor GitHub Repo
1+
name: Test Action
22

33
on:
44
workflow_dispatch:
5+
56
jobs:
6-
run-notifier:
7+
test-action:
78
runs-on: ubuntu-latest
89
steps:
10+
- name: Checkout the code
11+
uses: actions/checkout@v3
12+
913
- name: Set up Node.js
1014
uses: actions/setup-node@v3
1115
with:
12-
node-version: '16'
13-
- name: Run action
14-
uses: ./ # path to your action
16+
node-version: 18
17+
18+
- name: Test Local Action
19+
uses: ./ # This points to the root of your action's repo
1520
with:
1621
task: "monitor-issues"
17-
git_token: "${{ secrets.GITHUB_TOKEN }}"
18-
notifier: "discord" # or "slack"
19-
fetch_data_interval: 24 # You can set this in hours
20-
discord_webhook_url: "your_discord_webhook_url"
22+
git_secret: ${{ secrets.GIT_SECRET }}
23+
notifier: "discord"
24+
fetch_data_interval: 24
25+
discord_webhook_url: "https://discord.com/api/webhooks/1234567890/abc123"
2126
repo_owner: "facebook"
2227
repo_name: "react-native"
23-

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39703,8 +39703,8 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
3970339703
/******/
3970439704
/************************************************************************/
3970539705
var __webpack_exports__ = {};
39706-
const { monitorIssues } = __nccwpck_require__(901);
39707-
const { monitorPRs } = __nccwpck_require__(554);
39706+
const monitorIssues = __nccwpck_require__(901);
39707+
const monitorPRs = __nccwpck_require__(554);
3970839708

3970939709
const core = __nccwpck_require__(4967);
3971039710

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)