🚀 Initial Commit

This commit is contained in:
Nikhil Badyal
2022-08-12 21:02:47 +05:30
commit 0cafeb1381
16 changed files with 1274 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
# Config for Dependabot updates. See Documentation here:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
# Update GitHub actions in workflows
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
assignees:
- "nikhilbadyal"
# Enable version updates for Docker
- package-ecosystem: "docker"
# Look for a `Dockerfile` in the `docker/test/postgres` directory
directory: "/"
# Check for updates to GitHub Actions every weekday
schedule:
interval: "daily"
assignees:
- "nikhilbadyal"
# Enable version updates for Python/Pip - Production
- package-ecosystem: "pip"
# Look for a `requirements.txt` in the `root` directory
# also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt'
directory: "/"
# Check for updates to GitHub Actions every weekday
schedule:
interval: "daily"
assignees:
- "nikhilbadyal"
+41
View File
@@ -0,0 +1,41 @@
name: Build Revanced APK
# Enable Buildkit and let compose use it to speed up image building
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
push:
branches:
- main
paths:
- '*.py'
- requirements.txt
- entrypoint
- Dockerfile
- docker-compose.yml
- .env
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-apk:
name: APK Build
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Build APK
run: |
docker-compose up
- name: Upload Build Artifact(youtube)
uses: ncipollo/release-action@v1.10.0
with:
artifacts: "apks/*-output.apk"
token: ${{ secrets.GH_TOKEN }}
tag: Latest-${{ github.run_id }}-${{ github.run_attempt }}
@@ -0,0 +1,43 @@
# Run pre-commit autoupdate every day at midnight
# and create a pull request if any changes
name: Pre-commit auto-update
on:
schedule:
- cron: "15 2 * * *"
workflow_dispatch: # to trigger manually
permissions:
contents: read
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.2.0
with:
python-version: "3.10"
- name: Install pre-commit
run: pip install pre-commit
- name: Autoupdate template
run: pre-commit autoupdate
- name: Autoupdate generated projects
run: pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_PERSONAL_TOKEN }}
branch: update/pre-commit-autoupdate
title: Update pre-commit hooks
commit-message: updated pre-commit hooks
body: Update versions of tools in pre-commit configs to latest version
labels: pre-commit