@@ -18,28 +18,29 @@ jobs:
1818 steps :
1919 - uses : actions/checkout@v4
2020
21- - name : Check GitHub Actions for updates
21+ - name : Check GitHub Actions for updates manually
2222 id : actions-check
23- uses : sethvargo/action-github-actions-updater@v1
24- with :
25- workflows : .github/workflows/*.yml
26- token : ${{ secrets.GITHUB_TOKEN }}
27- dry-run : true
23+ run : |
24+ echo "Checking for GitHub Action updates"
25+ # Create a report of current GitHub Actions used
26+ echo "" > actions_changes.txt
27+ grep -r "uses:" --include="*.yml" .github/workflows/ | sort | uniq > current_actions.txt
28+ echo "Current GitHub Actions:" >> actions_changes.txt
29+ cat current_actions.txt >> actions_changes.txt
2830
2931 - name : Create Actions Update Report
3032 run : |
3133 echo "# GitHub Actions Updates" > actions_updates.md
3234 echo "" >> actions_updates.md
33- echo "## Available Updates " >> actions_updates.md
35+ echo "## Current Actions " >> actions_updates.md
3436 echo "" >> actions_updates.md
35-
36- if [[ -n "${{ steps.actions-check.outputs.changes }}" ]]; then
37- echo "${{ steps.actions-check.outputs.changes }}" >> actions_updates.md
38- echo "" >> actions_updates.md
39- echo "These updates can be automatically applied by running this workflow with the dry-run option set to false." >> actions_updates.md
40- else
41- echo "All GitHub Actions are up to date\!" >> actions_updates.md
42- fi
37+ echo "The following GitHub Actions are used in this repository:" >> actions_updates.md
38+ echo "" >> actions_updates.md
39+ echo "```" >> actions_updates.md
40+ cat current_actions.txt >> actions_updates.md
41+ echo "```" >> actions_updates.md
42+ echo "" >> actions_updates.md
43+ echo "To check for updates, visit the GitHub repositories for these actions." >> actions_updates.md
4344
4445 - name : Upload Actions Report
4546 uses : actions/upload-artifact@v4
0 commit comments