This repository was archived by the owner on Jul 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.54 KB
/
UpdateTracker.yml
File metadata and controls
55 lines (48 loc) · 1.54 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check_forums:
runs-on: ubuntu-latest
name: Marketplace Update Tracker
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Download previous last post URL .txt file
continue-on-error: true
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: UpdateTracker.yml
name: post_url
- name: Read previous last post URL
id: lastPost
shell: bash
run: |
if [ -f post_url.txt ];then
value=`cat post_url.txt`
else
value=''
fi
echo "post_url=$value" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm install
- name: Get Updates from DDO forums
id: getUpdates
uses: ./getUpdates
with:
post_url: ${{ steps.lastPost.outputs.post_url }}
webhook_string_data: ${{ secrets.WebhookStringData }}
proxy: ${{ secrets.Proxy }}
- name: Store last post URL to .txt file
if: ${{ steps.getUpdates.outputs.new_post == 'true' }}
run: echo "${{ steps.getUpdates.outputs.post_url }}" > post_url.txt
- name: Upload post URL .txt file to the repository
uses: actions/upload-artifact@v3
with:
name: post_url
path: post_url.txt