Skip to content

Get the updates

Get the updates #2710

Workflow file for this run

name: Get the updates
on:
workflow_dispatch:
jobs:
diff-issue:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
- name: Run the diff script
id: run-diff
run: |
python glossary_diff.py > output.txt
cat output.txt
- name: Prepare output to create the issue
id: prepare
run: |
OUTPUT=$(cat output.txt)
OUTPUT="${OUTPUT//'%'/'%25'}"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "::set-output name=outputFile::$OUTPUT"
- name: Create an issue
uses: actions-ecosystem/action-create-issue@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
title: PTBR - Updates from main branch
body: |
${{ steps.prepare.outputs.outputFile }}