mirror of
https://github.com/smallfawn/decode_action.git
synced 2026-06-05 21:04:00 +08:00
37 lines
818 B
YAML
37 lines
818 B
YAML
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 "action@github.com"
|
|
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
|
|
|