@@ -26,12 +26,46 @@ jobs:
2626 else
2727 echo "CLASSIC_PATKA secret is available"
2828 fi
29-
30- - name : Setup GitHub CLI
29+
30+ - name : Setup Node for Github CLI
3131 uses : actions/setup-node@v4
3232 with :
3333 node-version : ' 24.x'
34-
34+
35+ - name : Create Dummy Artifact
36+ run : |
37+ # Create a directory for the artifact
38+ mkdir -p artifact-output
39+
40+ # Create some dummy files with deployment information
41+ echo "Deployment triggered successfully" > artifact-output/deployment-status.txt
42+ echo "Branch: ${{ github.ref_name }}" >> artifact-output/deployment-status.txt
43+ echo "Commit: ${{ github.sha }}" >> artifact-output/deployment-status.txt
44+ echo "Timestamp: $(date)" >> artifact-output/deployment-status.txt
45+ echo "Repository: ${{ github.repository }}" >> artifact-output/deployment-status.txt
46+
47+ # Create a JSON file with deployment metadata
48+ cat > artifact-output/deployment-metadata.json << EOF
49+ {
50+ "branch": "${{ github.ref_name }}",
51+ "commit": "${{ github.sha }}",
52+ "repository": "${{ github.repository }}",
53+ "trigger_event": "${{ github.event_name }}",
54+ "timestamp": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
55+ "deployment_triggered": true
56+ }
57+ EOF
58+
59+ # List the created files
60+ ls -la artifact-output/
61+
62+ - name : Upload Deployment Artifact
63+ uses : actions/upload-artifact@v4
64+ with :
65+ name : deployment-trigger-info
66+ path : artifact-output/
67+ retention-days : 30
68+
3569 - name : Trigger Workflow in Another Repository
3670 uses : actions/github-script@v8
3771 with :
0 commit comments