-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.34 KB
/
issue-tracker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test tracker
on:
# a cron schedule to run periodically
schedule:
- cron: '0 * * * *'
jobs:
test_issue_tracker:
runs-on: ubuntu-latest
name: A job to test issue tracker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Track issues
id: tracking
uses: actioncloud/issue-tracker-action@master
with:
github-token: ${{ secrets.GH_TOKEN }}
# you need git commit to push the issue data to the folder: .github/actioncloud
- name: Git commit
run: |
# git commit if there's any change
if test -n "$(git status --porcelain 2>/dev/null)"; then
git config --global user.email "[email protected]"
git config --global user.name "SwaragThaikkandi"
git add .
git commit -m "Update forks data"
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# you can get badge code of ActionCloud viewer App, and click it to view your data
- name: Generate ActionCloud Viewer Badge
id: actioncloud_badge
run: echo "::set-output name=badge_code::$(curl -sL https://api.actioncloud.io/generate-badge-code)"
- name: Show ActionCloud Viewer Badge
run: echo "${{ steps.actioncloud_badge.outputs.badge_code }}"