Skip to content

Commit

Permalink
Merge pull request #8 from edgardmessias/patch-1
Browse files Browse the repository at this point in the history
chore: Updated build_push.yml
  • Loading branch information
almightyhak authored Jun 24, 2024
2 parents 8f0e646 + ce23a81 commit ad556b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/bump-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
VERSION_REGEX = re.compile(f"{VERSION_STR} (\\d+)")
BUMPED_FILES: list[Path] = []

BOT_EMAIL = "[email protected]"
BOT_NAME = "aniyomi-bot[bot]"
BOT_EMAIL = "[email protected]"
BOT_NAME = "almightyhak"

def has_match(query: str, file: Path) -> tuple[Path, bool]:
return (file, query in file.read_text())
Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/commit-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -e

rsync -a --delete --exclude .git --exclude .gitignore ../main/repo/ .
git config --global user.email "[email protected]"
git config --global user.name "aniyomi-bot[bot]"
git config --global user.email "[email protected]"
git config --global user.name "almightyhak"
git status
if [ -n "$(git status --porcelain)" ]; then
git add .
Expand Down
21 changes: 2 additions & 19 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
ref: main
token: ${{ secrets.ANIYOMIORG_BOT_PAT }}
token: ${{ secrets.BOT_PAT }}

- name: Find lib changes
id: modified-libs
Expand All @@ -40,14 +40,6 @@ jobs:
files_separator: " "
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.
- name: Bump extensions that uses a modified lib
if: steps.modified-libs.outputs.any_changed == 'true'
Expand Down Expand Up @@ -159,19 +151,10 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
repository: almightyhak/aniyomi-anime-repo
token: ${{ secrets.ANIYOMIORG_BOT_PAT }}
token: ${{ secrets.BOT_PAT }}
ref: main
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
run: |
cd repo
Expand Down

0 comments on commit ad556b0

Please sign in to comment.