-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MOSIP-29237] updated workflows as per reusable workflow templates (#204
) * [MOSIP-29237] updated workflows as per reusable workflow templates [MOSIP-25631] * [MOSIP-29237] updated clear-artifacts.yml [MOSIP-25631] --------- Co-authored-by: syed-salman-technoforte <[email protected]>
- Loading branch information
1 parent
aa67b42
commit 71dd7b8
Showing
4 changed files
with
15 additions
and
410 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,13 +1,17 @@ | ||
name: 'Delete old artifacts' | ||
on: | ||
schedule: | ||
- cron: '0 * * * *' # every hour | ||
|
||
- cron: '0 * * * *' # Every hour | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Message for manually triggering' | ||
required: false | ||
default: 'Triggered for Updates' | ||
type: string | ||
jobs: | ||
delete-artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: kolpav/purge-artifacts-action@v1 | ||
with: | ||
token: ${{ secrets. access_token }} | ||
expire-in: 2days # Setting this to 0 will delete all artifacts | ||
uses: mosip/kattu/.github/workflows/clear-artifacts.yml@master | ||
secrets: | ||
ACCESS_TOKEN: ${{ secrets.access_token }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} |
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
Oops, something went wrong.