Skip to content
Snippets Groups Projects
Commit 6c26a436 authored by Ciro Santilli's avatar Ciro Santilli
Browse files

checkout

parent 5ef41d53
No related branches found
No related tags found
No related merge requests found
...@@ -6,11 +6,13 @@ jobs: ...@@ -6,11 +6,13 @@ jobs:
Issue: Issue:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- run: echo "github ${{ github }}"
- run: echo "github.event_name ${{ github.event_name }}" - run: echo "github.event_name ${{ github.event_name }}"
- run: echo "github.ref ${{ github.ref }}" - run: echo "github.ref ${{ github.ref }}"
- run: echo "github.repository ${{ github.repository }}" - run: echo "github.repository ${{ github.repository }}"
- run: echo "runner.os ${{ runner.os }}" - run: echo "runner.os ${{ runner.os }}"
- run: echo "${{ github.workspace }}" - run: echo "github.workspace ${{ github.workspace }}"
- run: ls ${{ github.workspace }} - name: Check out repository code
- run: echo "${{ job.status }}." uses: actions/checkout@v2
- run: ls "${{ github.workspace }}"
- run: "${{ github.workspace }}/action.py"
- run: echo "job.status ${{ job.status }}."
#!/usr/bin/env python3
import random
import re
image_re = re.compile('^image::{china-dictatorship-media-base}/([^/[]+)')
images = []
with open('README.adoc', 'r') as f:
for line in f:
line = line.rstrip()
match = image_re.match(line)
if match:
images.append(match.group(1))
images = random.sample(images, 10)
for image in images:
print('https://raw.githubusercontent.com/cirosantilli/china-dictatorship-media/master/' + image)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment