diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index 0a1051f..e149187 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -40,10 +40,6 @@ jobs: id: script run: echo "updated=$(uv run main.py)" >> $GITHUB_OUTPUT - - name: Create issue if updated - if: ${{ steps.script.outputs.updated == 'yes' }} - run: echo "TODO create issue" - - name: Commit changes if: ${{ !contains(fromJSON('["push", "pull_request"]'), github.event_name) }} # commit changes only if scheduled uses: EndBug/add-and-commit@v9.1.4 @@ -58,5 +54,14 @@ jobs: if: ${{ needs.check-for-updates.outputs.updated == 'yes' }} runs-on: ubuntu-latest steps: - - name: Create issue if updated - run: echo "TODO create issue" + - uses: actions/checkout@v4 + + - name: Get data from json + id: get_data + run: echo "json_data=$(cat last_update.json)" >> $GITHUB_OUTPUT + + - name: Echo info from json + run: | + echo Title: ${{ fromJson(steps.get_data.outputs.json_data).title }} + echo Body: ${{ fromJson(steps.get_data.outputs.json_data).contents }} + echo URL: ${{ fromJson(steps.get_data.outputs.json_data).url }} diff --git a/last_update.json b/last_update.json new file mode 100644 index 0000000..da808d1 --- /dev/null +++ b/last_update.json @@ -0,0 +1 @@ +{"gid": "1785774543649020", "title": "Fortress Mode Hotfix 50.15", "url": "https://steamstore-a.akamaihd.net/news/externalpost/steam_community_announcements/1785774543649020", "is_external_url": true, "author": "Not Alex", "contents": "Fixed a bug that made hive sprites appear as socks and cloaks ", "feedlabel": "Community Announcements", "date": 1734341458, "feedname": "steam_community_announcements", "feed_type": 1, "appid": 975370, "tags": ["patchnotes"]} \ No newline at end of file