Skip to content

Commit 7773468

Browse files
committed
Generate plugin repo YAML in CI
1 parent 1c297db commit 7773468

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/workflows/build-and-snapshot.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ jobs:
119119
python3 .github/workflows/generate_plugin_repo.py
120120
echo "✅ Plugin repository YAML generated"
121121
122+
- name: Generate timestamp
123+
id: timestamp
124+
run: echo "timestamp=$(date -u +'%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_OUTPUT
125+
122126
- uses: thomashampson/delete-older-releases@main
123127
with:
124128
keep_latest: 0
@@ -152,6 +156,8 @@ jobs:
152156
It includes the latest changes and is not intended for production use.
153157
Please test it and provide feedback.
154158
159+
**Build Timestamp**: ${{ steps.timestamp.outputs.timestamp }}
160+
155161
## Installation
156162
157163
Download the current snapshot release and install manually:
@@ -169,19 +175,7 @@ jobs:
169175
On Windows, the plugin will refuse to install unless the binary has the `.exe` file extension.
170176
171177
You can verify that the plugin is successfully installed by looking for `java` in the output of `cf plugins`.
172-
173-
## Build Status
174-
- ✅ Go Plugin: Built on Linux, macOS, and Windows
175-
- ✅ Plugin Repository: YAML entry generated automatically
176-
177-
## Plugin Repository Entry
178-
The `plugin-repo-entry.yml` file contains the snapshot entry for the CF CLI plugin repository.
179-
**Note:** This is a snapshot release - use the latest stable release for production.
180-
181-
## Changes
182-
This snapshot includes the latest commits from the repository.
183178
184-
**Build Timestamp**: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
185179
name: Snapshot Release
186180
env:
187181
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ jobs:
101101
echo "Plugin repository entry preview:"
102102
head -20 plugin-repo-entry.yml
103103
104+
- name: Generate timestamp
105+
id: timestamp
106+
run: echo "timestamp=$(date -u +'%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_OUTPUT
107+
104108
- name: Create GitHub Release
105109
uses: softprops/action-gh-release@v1
106110
with:
@@ -158,7 +162,7 @@ jobs:
158162
159163
You can verify that the plugin is successfully installed by looking for `java` in the output of `cf plugins`.
160164
161-
**Build Timestamp**: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
165+
**Build Timestamp**: ${{ steps.timestamp.outputs.timestamp }}
162166
env:
163167
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
164168

0 commit comments

Comments
 (0)