Get the updates #2709
This file contains 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
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 }} |