Skip to content

adjusted github action for a test run #1

adjusted github action for a test run

adjusted github action for a test run #1

Workflow file for this run

name: Archive Tooting
on:
push: # Trigger on push
pull_request:
types: [closed]
workflow_dispatch: # manual triggering
jobs:
toot_update:
if: |
github.event.pull_request.merged == true &&
github.event.pull_request.title == "[Automatic PR] Update chronicle file"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install requests
- name: Construct diff URL
id: construct_diff_url
run: |
echo "https://patch-diff.githubusercontent.com/raw/poseidon-framework/community-archive/pull/184.diff" > diff_url.txt
- name: Fetch PR diff
run: |
curl -L $(cat diff_url.txt) -o diff.txt
- name: Run parseDiffForMastodon.py
run: |
python3 parseDiffForMastodon.py < diff.txt > parse_output.txt
- name: Print parseDiffForMastodon.py output
run: cat parse_output.txt
- name: Toot!
uses: rzr/fediverse-action@master
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}

Check failure on line 48 in .github/workflows/archiveTooting.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/archiveTooting.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
host: "ecoevo.social" # custom host if not "mastodon.social" (default)
message: cat parse_output.txt