This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
jobs: | |
one: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys,re | |
def main(): | |
fh = open(sys.argv[1],'r') | |
lines = fh.readlines() | |
print '\tpython2.2 -c "`printf \\"if 1:\\n\\' | |
for line in lines: | |
line = re.sub('[\\\'\"()]','\\\g<0>',line) | |
# grab leading white space (should be multiples of 4) and makes them into | |
# tabs |