forked from AlmightyHak/extensions-source
chore: Updated build_push.yml
This commit is contained in:
parent
8f0e646078
commit
ce23a81969
3 changed files with 6 additions and 23 deletions
4
.github/scripts/bump-versions.py
vendored
4
.github/scripts/bump-versions.py
vendored
|
@ -11,8 +11,8 @@ VERSION_STR = "VersionCode ="
|
||||||
VERSION_REGEX = re.compile(f"{VERSION_STR} (\\d+)")
|
VERSION_REGEX = re.compile(f"{VERSION_STR} (\\d+)")
|
||||||
BUMPED_FILES: list[Path] = []
|
BUMPED_FILES: list[Path] = []
|
||||||
|
|
||||||
BOT_EMAIL = "aniyomi-bot@aniyomi.org"
|
BOT_EMAIL = "134626626+almightyhak@users.noreply.github.com"
|
||||||
BOT_NAME = "aniyomi-bot[bot]"
|
BOT_NAME = "almightyhak"
|
||||||
|
|
||||||
def has_match(query: str, file: Path) -> tuple[Path, bool]:
|
def has_match(query: str, file: Path) -> tuple[Path, bool]:
|
||||||
return (file, query in file.read_text())
|
return (file, query in file.read_text())
|
||||||
|
|
4
.github/scripts/commit-repo.sh
vendored
4
.github/scripts/commit-repo.sh
vendored
|
@ -2,8 +2,8 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rsync -a --delete --exclude .git --exclude .gitignore ../main/repo/ .
|
rsync -a --delete --exclude .git --exclude .gitignore ../main/repo/ .
|
||||||
git config --global user.email "aniyomi-bot@aniyomi.org"
|
git config --global user.email "134626626+almightyhak@users.noreply.github.com"
|
||||||
git config --global user.name "aniyomi-bot[bot]"
|
git config --global user.name "almightyhak"
|
||||||
git status
|
git status
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
git add .
|
git add .
|
||||||
|
|
21
.github/workflows/build_push.yml
vendored
21
.github/workflows/build_push.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
token: ${{ secrets.ANIYOMIORG_BOT_PAT }}
|
token: ${{ secrets.BOT_PAT }}
|
||||||
|
|
||||||
- name: Find lib changes
|
- name: Find lib changes
|
||||||
id: modified-libs
|
id: modified-libs
|
||||||
|
@ -40,14 +40,6 @@ jobs:
|
||||||
files_separator: " "
|
files_separator: " "
|
||||||
safe_output: false
|
safe_output: false
|
||||||
|
|
||||||
- name: Import GPG key
|
|
||||||
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
|
|
||||||
with:
|
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
||||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
git_user_signingkey: true
|
|
||||||
git_commit_gpgsign: true
|
|
||||||
|
|
||||||
# This step is going to commit, but this will not trigger another workflow.
|
# This step is going to commit, but this will not trigger another workflow.
|
||||||
- name: Bump extensions that uses a modified lib
|
- name: Bump extensions that uses a modified lib
|
||||||
if: steps.modified-libs.outputs.any_changed == 'true'
|
if: steps.modified-libs.outputs.any_changed == 'true'
|
||||||
|
@ -159,19 +151,10 @@ jobs:
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||||
with:
|
with:
|
||||||
repository: almightyhak/aniyomi-anime-repo
|
repository: almightyhak/aniyomi-anime-repo
|
||||||
token: ${{ secrets.ANIYOMIORG_BOT_PAT }}
|
token: ${{ secrets.BOT_PAT }}
|
||||||
ref: main
|
ref: main
|
||||||
path: repo
|
path: repo
|
||||||
|
|
||||||
- name: Import GPG key
|
|
||||||
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
|
|
||||||
with:
|
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
||||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
|
||||||
git_user_signingkey: true
|
|
||||||
git_commit_gpgsign: true
|
|
||||||
workdir: repo
|
|
||||||
|
|
||||||
- name: Deploy repo
|
- name: Deploy repo
|
||||||
run: |
|
run: |
|
||||||
cd repo
|
cd repo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue