-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
// bucket supports onInsert, while Table does not | ||
// see https://github.com/winglang/wing/issues/2841 | ||
# Feedreader | ||
|
||
This is an example of a WingLang project that demonstrates the usage of cloud services to read a Github Atom feed and trigger a Github Action when a new version is detected. | ||
|
||
## Usage | ||
|
||
1. Set up a new cloud secret with the name "github-token" and your Github token as the value. | ||
2. Deploy the project. | ||
3. The program will run every hour, checking the Github Atom feed for new versions. | ||
4. If a new version is detected, it will trigger the specified Github Action and store a record in a cloud bucket. | ||
5. Add `workflow_dispatch:` to the Github Action you want to trigger. This allows the action to be run manually from the Github Actions UI or API. | ||
|
||
![console](./console.png) | ||
|
||
![workflow](./workflow.png) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.