Skip to content

Commit

Permalink
[MOSIP-29237] updated workflows as per reusable workflow templates (#204
Browse files Browse the repository at this point in the history
)

* [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
syedsalman3753 and syed-salman-technoforte authored Sep 26, 2023
1 parent aa67b42 commit 71dd7b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 410 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/clear-artifacts.yml
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 }}
9 changes: 2 additions & 7 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ on:
types: [published]
pull_request:
types: [opened]
branches:
- '!release-branch'
- release-1*
- 1.*
- develop
- MOSIP*
workflow_dispatch:
inputs:
message:
Expand All @@ -21,10 +15,11 @@ on:
push:
branches:
- '!release-branch'
- release-1*
- release*
- master
- 1.*
- develop
- MOSIP*

jobs:
build-kernel:
Expand Down
Loading

0 comments on commit 71dd7b8

Please sign in to comment.