Skip to content

Commit

Permalink
Merge branch 'main' into automated_PR_for_update_issues-1706789119
Browse files Browse the repository at this point in the history
  • Loading branch information
joergi authored Feb 1, 2024
2 parents 155607b + 7c55c1b commit 7666fa6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
time: '04:00'
open-pull-requests-limit: 100
2 changes: 1 addition & 1 deletion .github/workflows/update-to-newest-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
git config --local user.name "Joergi via GitHub Actions"
- name: Create Pull Request
id: createAutoPR
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@v6
with:
title: new Issue ${{ env.ISSUE_NUMBER }} - Automated PR
commit-message: new Issue ${{ env.ISSUE_NUMBER }} - Automated PR
Expand Down
9 changes: 5 additions & 4 deletions script-for-using-latest-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ IFS=$'\n\t'
# VERSION=0.1
# you don't need to run this script
# this is running automatically on Github each day to update the latest issues

TARGET_URL="https://helloworld.raspberrypi.org/"
TARGET_URL="https://www.raspberrypi.org/hello-world"
BASEDIR=$(dirname "$0")

#printf -v page_url "$TARGET_URL/issues"
page_url=$(printf '%s\n' "$TARGET_URL/issues")

latest_issue=$(curl -sf "$page_url" | grep "Download Free PDF" | head -n 1 | sed 's/^.*issues\///' | sed 's/\/pdf.*$//')
echo "Latest Issue is " "$latest_issue"
echo $page_url
latest_issue=$(curl -sf "$page_url" | grep "Download PDF - Issue " | head -n 1 | sed -n 's/.*Download PDF - Issue \(.*\)/\1/p' | sed -n 's/^\([0-9]\+\)".*$/\1/p')

echo "Latest Issue is" "$latest_issue"

file="$BASEDIR/regular-issues.txt";
echo $file
Expand Down

0 comments on commit 7666fa6

Please sign in to comment.