Skip to content

Commit 39fd8d3

Browse files
edited workflow for testing
1 parent fd4df40 commit 39fd8d3

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/updateCodeJSON.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@ jobs:
2121
uses: DSACMS/automated-codejson-generator@sachin/autoMergeFeat
2222
with:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
ADMIN_TOKEN: ${{ secrets.ADMIN_PAT }}
2425
BRANCH: "main"
26+
SKIP_PR: "true"
2527

26-
- name: Print outputs
28+
- name: Post update information
2729
run: |
28-
echo "Your code.json has been updated: ${{steps.generator.outputs.updated}}"
29-
echo "Pull Request Link: ${{steps.generator.outputs.pr_url}}"
30+
echo "Update successful: ${{ steps.generator.outputs.updated }}"
31+
echo "Method used: ${{ steps.generator.outputs.method_used }}"
32+
if [ "${{ steps.generator.outputs.method_used }}" = "direct_push" ]; then
33+
echo "✅ Direct push successful! Commit SHA: ${{ steps.generator.outputs.commit_sha }}"
34+
elif [ "${{ steps.generator.outputs.method_used }}" = "pull_request" ]; then
35+
echo "📝 Created pull request: ${{ steps.generator.outputs.pr_url }}"
36+
fi
37+

0 commit comments

Comments
 (0)