Skip to content

Commit 8c74d5d

Browse files
committed
push task list changes to taskapp repo too
1 parent 7d61542 commit 8c74d5d

2 files changed

Lines changed: 36 additions & 11 deletions

File tree

.github/actions/create-pr/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Setup & Install Dependencies
2-
description: Sets Node.js up and installs project dependencies
1+
name: Create PR
2+
description: Creates a PR on the target repository with the changes already applied
33

44
inputs:
5-
repository:
5+
path:
66
description: Repository path.
77
required: true
88
token:
@@ -16,10 +16,10 @@ runs:
1616
id: create-pr
1717
uses: peter-evans/create-pull-request@v5
1818
with:
19-
path: ${{ inputs.repository }}
19+
path: ${{ inputs.path }}
2020
token: ${{ inputs.token }}
2121
commit-message: |
22-
[auto-sync] update task list
22+
[auto] update task list
2323
2424
Updated from ${{ github.repository }}@${{ github.sha }}
2525
title: "🤖[auto-sync] update task list"
@@ -32,7 +32,7 @@ runs:
3232
3333
---
3434
_Created automatically by GitHub Actions_
35-
branch: task-list/auto-sync
35+
branch: osrs-taskbot/task-list
3636
delete-branch: true
3737
author: "[osrs-taskbot] <r.mobis+taskbot@gmail.com>"
3838
committer: "[osrs-taskbot] <r.mobis+taskbot@gmail.com>"

.github/workflows/sync-clogmaster-task-list.yml renamed to .github/workflows/push-task-list-changes.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Synchronize Clog Master Plugin Task List
1+
name: Push Task List Changes
22

33
on:
44
push:
55
branches: ["main"]
6-
paths: ["tiers/*.json", ".github/workflows/sync-clogmaster-task-list.yml"]
6+
paths: ["tiers/*.json", ".github/workflows/push-task-list-changes.yml"]
77
workflow_dispatch:
88

99
jobs:
10-
sync-tedious-list:
10+
plugin:
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -26,7 +26,7 @@ jobs:
2626
token: ${{ secrets.ROBOT_GITHUB_TOKEN }}
2727
path: collection-log-master
2828

29-
- name: Copy task list to plugin repository
29+
- name: Copy task tiers to plugin repository
3030
run: |
3131
cp lists/tedious.json collection-log-master/src/main/resources/com/collectionlogmaster/task-list.json
3232
cp lists/tedious.json collection-log-master/src/main/resources/com/collectionlogmaster/domain/task-list.json
@@ -35,5 +35,30 @@ jobs:
3535
- name: Create PR
3636
uses: ./.github/actions/create-pr
3737
with:
38-
repository: collection-log-master
38+
path: collection-log-master
39+
token: ${{ secrets.ROBOT_GITHUB_TOKEN }}
40+
41+
taskapp:
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
47+
48+
- uses: ./.github/actions/setup
49+
50+
- name: Checkout taskapp repository
51+
uses: actions/checkout@v4
52+
with:
53+
repository: OSRS-Taskman/Taskapp_Public
54+
token: ${{ secrets.ROBOT_GITHUB_TOKEN }}
55+
path: Taskapp_Public
56+
57+
- name: Copy task list to taskapp repository
58+
run: cp tiers/*.json Taskapp_Public/task-lists/
59+
60+
- name: Create PR
61+
uses: ./.github/actions/create-pr
62+
with:
63+
path: Taskapp_Public
3964
token: ${{ secrets.ROBOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)