-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 947 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
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
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
ls
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 }}
- name: Push changes
uses: actions-js/push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"