-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (32 loc) · 1012 Bytes
/
review.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
name: Review
on:
pull_request_target: {}
permissions:
contents: write
pull-requests: write
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.number }}/merge
- uses: oven-sh/setup-bun@v1
- name: Get changed files
uses: lots0logs/gh-action-get-changed-files@e5c59575dff4a94f74c6cc609a77c71f0becf7ec
id: changes
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install -y exiftool
- run: bun review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
CHANGED_FILES: ${{ steps.changes.outputs.all }}
- name: Push changes
uses: actions-js/push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"