forked from smallfawn/decode_action
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 818 Bytes
/
decode.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
name: Decode JavaScript File
on:
push:
branches:
- main
jobs:
decode:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Execute Python script for decoding
run: |
python src/decode.py
- name: Install dependencies and run decode
run: |
npm install
npm run decode -- [-i input.js] [-o output.js]
- name: Configure Git author
run: |
git config --local user.email "[email protected]"
git config --local user.name "action"
- name: Save decoded output to repository
run: |
git status
ls
git add output.js
git add output.py
git commit -m "Add decoded output file"
git push