podman
1---
2
3# WARNING ALERT DANGER CAUTION ATTENTION: This file is re-used from the
4# `main` branch, by workflows in (at least) the Buildah and Skopeo repos.
5# Please think twice before making large changes, renaming, or moving the file.
6
7# Format ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
8
9name: "Lock closed issues and PRs"10
11on:12schedule:13- cron: '0 0 * * *'14# Allow re-use of this workflow by other repositories15# Ref: https://docs.github.com/en/actions/using-workflows/reusing-workflows16workflow_call:17secrets:18ACTION_MAIL_SERVER:19required: true20ACTION_MAIL_USERNAME:21required: true22ACTION_MAIL_PASSWORD:23required: true24ACTION_MAIL_SENDER:25required: true26# Debug: Allow triggering job manually in github-actions WebUI27workflow_dispatch: {}28
29permissions:30contents: read31
32concurrency:33group: lock34
35env:36# Number of days before a closed issue/PR is be comment-locked.37# Note: dessant/lock-threads will only process a max. of38# 50 issues/PRs at a time.39CLOSED_DAYS: 9040# Pre-created issue/PR label to add (preferably a bright color).41# This is intended to direct a would-be commenter's actions.42LOCKED_LABEL: 'locked - please file new issue/PR'43
44jobs:45manage_locking:46runs-on: ubuntu-latest47permissions:48issues: write49pull-requests: write50steps:51# Ref: https://github.com/dessant/lock-threads#usage52- uses: dessant/lock-threads@v553with:54process-only: 'issues, prs'55issue-inactive-days: '${{env.CLOSED_DAYS}}'56pr-inactive-days: '${{env.CLOSED_DAYS}}'57add-issue-labels: '${{env.LOCKED_LABEL}}'58add-pr-labels: '${{env.LOCKED_LABEL}}'59pr-lock-reason: 'resolved'60log-output: true61- if: failure()62name: Send job failure notification e-mail63uses: dawidd6/action-send-mail@v3.12.064with:65server_address: ${{secrets.ACTION_MAIL_SERVER}}66server_port: 46567username: ${{secrets.ACTION_MAIL_USERNAME}}68password: ${{secrets.ACTION_MAIL_PASSWORD}}69subject: Github workflow error on ${{github.repository}}70to: podman-monitor@lists.podman.io71from: ${{secrets.ACTION_MAIL_SENDER}}72body: "Job failed: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"73