-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.41 KB
/
assets.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
name: Assets
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * *'
jobs:
assets:
name: Update local assets
runs-on: ubuntu-latest
if: github.repository_owner == 'ghostery'
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Fetch latest assets
id: fetch
working-directory: ./scripts
run: |
bun run update.js
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.ADBLOCKERBOT_APP_ID }}
private_key: ${{ secrets.ADBLOCKERBOT_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
committer: Ghostery Adblocker Bot <[email protected]>
author: Ghostery Adblocker Bot <[email protected]>
commit-message: "Update redirect resources mappings"
title: "Update local assets"
body: "Automated update of local redirect resources mappings."
branch: update-assets
labels: "PR: Internal :house:"
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}"