-
Notifications
You must be signed in to change notification settings - Fork 445
60 lines (52 loc) · 1.61 KB
/
newapp-check.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
58
59
60
name: Check for new Revanced apps
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
CREATE_ISSUE:
description: "Create GitHub issue"
required: false
type: boolean
default: false
jobs:
status_check:
if: github.repository == 'nikhilbadyal/docker-py-revanced'
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@main
- name: Setup python
uses: actions/setup-python@main
with:
python-version: '3.12.3'
- name: Install Requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute Status Check
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
output=$(python -m scripts.status_check)
echo "changelog<<$EOF" >> $GITHUB_OUTPUT
echo "$output" >> $GITHUB_OUTPUT
echo "$EOF" >> $GITHUB_OUTPUT
id: status
- name: Update Check
run: |
echo "${{ steps.status.outputs.changelog }}"
- name: Upload status file
uses: actions/upload-artifact@main
with:
name: issue_body.md
path: status.md
if-no-files-found: error
- name: Create Issue Action
if: inputs.CREATE_ISSUE
uses: nashmaniac/[email protected]
with:
title: Revanced apps Status
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{ github.repository_owner }}
labels: 💁new-app
body: ${{ steps.status.outputs.changelog }}