Skip to content

Commit

Permalink
Add label-when-deployed job
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Konecny <[email protected]>
  • Loading branch information
Zlopez committed Jan 15, 2024
1 parent ee4a543 commit 6d28579
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/label-when-deployed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Apply labels when deployed

on:
push:
branches:
- staging
- production

jobs:
label:
name: Apply labels
runs-on: ubuntu-latest

steps:
- name: Staging deployment
uses: fedora-infra/label-when-in-branch@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: staging
label: deployed:staging

- name: Production deployment
uses: fedora-infra/label-when-in-branch@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: production
label: deployed:prod

0 comments on commit 6d28579

Please sign in to comment.