Skip to content

Commit

Permalink
Add a GH action to label issues and PRs when they get deployed
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Sep 22, 2023
1 parent 3e4aa94 commit 1bc7e72
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/label-when-deployed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: Contributors to the Fedora Project
#
# SPDX-License-Identifier: MIT

name: Apply labels when deployed

on:
push:
branches:
- staging
- stable

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: stable
label: deployed:prod

0 comments on commit 1bc7e72

Please sign in to comment.