-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.14 KB
/
alttexter.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
name: alttexter
on:
pull_request:
types: [opened, synchronize]
paths:
- '**.md'
- '**.mdx'
- '**.ipynb'
permissions:
contents: write
pull-requests: write
issues: write
jobs:
alttexter-ghclient:
runs-on: ubuntu-latest
container:
image: ghcr.io/jonathanalgar/alttexter-ghclient:v0.1
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set ref for checkout
id: set_ref
run: |
echo "REF=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 1
ref: ${{ env.REF }}
- name: Run script
env:
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
ALTTEXTER_ENDPOINT: ${{ secrets.ALTTEXTER_ENDPOINT }}
ALTTEXTER_TOKEN: ${{ secrets.ALTTEXTER_TOKEN }}
ALTTEXTER_RATEMINUTE: ${{ secrets.ALTTEXTER_RATEMINUTE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python /app/alttexter-ghclient.py