-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.65 KB
/
StartNewGame.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Start New Game
on:
schedule:
- cron: '0 0 * * 0' # every Sunday at 00:00
workflow_dispatch:
inputs:
targetURL:
description: 'The URL of the image to be targeting for transformation'
required: true
default: 'https://fileserver.matissetec.dev/output/similarImages/630649313860780043/6166500929/6166500929/png'
topic:
description: 'The topic of the target image'
required: true
default: 'A beautiful landscape with a river'
jobs:
NewGameCreation:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate Word Lists with Difficulty-Based Probability
run: |
chmod +x ./workflowScripts/generate-word-list.sh
./workflowScripts/generate-word-list.sh
env:
WORD_LIST: ${{ vars.WORD_LIST }}
- name: Clear the current votes
run: |
chmod +x ./workflowScripts/reset-game-values.sh
./workflowScripts/reset-game-values.sh
env:
TARGET_URL: ${{ inputs.targetURL }}
- name: Set Game Information Readme
run: |
chmod +x ./workflowScripts/generate-game-info.sh
./workflowScripts/generate-game-info.sh
env:
TARGET_URL: ${{ inputs.targetURL }}
TOPIC: ${{ inputs.topic }}
- name: Save topic for later use
run: echo ${{ inputs.topic }} > PlayGame/currentTopic.txt
- name: Commit changes
run: |
chmod +x ./workflowScripts/pull-then-push.sh
./workflowScripts/pull-then-push.sh