Skip to content

Commit

Permalink
Use gh instead of hub in automation
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed Jan 9, 2025
1 parent 8e2a39d commit f21a410
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/check_l10n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
name: L10n automation
runs-on: ubuntu-latest
steps:
- name: Install Linux packages
run: |
sudo apt update
sudo apt install git hub -y
- name: Clone repository
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -81,7 +77,12 @@ jobs:
echo "No changes."
else
# Create pull request
hub pull-request -m "[l10n] Source document updates" -h l10n_updates -b l10n_reference -l l10n -r @mozilla/legal-l10n
gh pr create \
--title "[l10n] Source document updates" \
--head l10n_updates \
--base l10n_reference \
--label l10n \
--reviewer @mozilla/legal-l10n
fi
env:
GITHUB_TOKEN: ${{ secrets.L10N_LEGAL }}
9 changes: 7 additions & 2 deletions .github/workflows/pdf_generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install Linux packages
run: |
sudo apt update
sudo apt install -y git hub libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 fonts-wqy-microhei
sudo apt install -y git libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 fonts-wqy-microhei
- name: Clone repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -66,7 +66,12 @@ jobs:
echo "No changes."
else
# Create pull request
hub pull-request -m "[pdf] Update documents in PDF format" -h pdf_updates -b main -r @mozilla/legal-l10n
gh pr create \
--title "[pdf] Update documents in PDF format" \
--head pdf_updates \
--base main \
--label l10n \
--reviewer @mozilla/legal-l10n
fi
env:
GITHUB_TOKEN: ${{ secrets.L10N_LEGAL }}
11 changes: 6 additions & 5 deletions .github/workflows/prod_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
name: Publish Documents
runs-on: ubuntu-latest
steps:
- name: Install Linux packages
run: |
sudo apt update
sudo apt install git hub -y
- name: Clone repository
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -74,7 +70,12 @@ jobs:
echo "No changes."
else
# Create pull request
hub pull-request -m "[prod] Publish document updates" -h prod_updates -b prod -l prod -r @mozilla/legal-l10n
gh pr create \
--title "[prod] Publish document updates" \
--head prod_updates \
--base prod \
--label prod \
--reviewer @mozilla/legal-l10n
fi
env:
GITHUB_TOKEN: ${{ secrets.L10N_LEGAL }}

0 comments on commit f21a410

Please sign in to comment.