Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Remove outdated automatic content update PRs #84

Remove outdated automatic content update PRs

Remove outdated automatic content update PRs #84

name: Remove outdated automatic content update PRs
on:
workflow_dispatch:
schedule:
- cron: "50 23 * * *"
jobs:
close-stale-pull-requests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
ref: main
path: ${{ github.repository }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Load secrets from 1Password
id: onepw_secrets
uses: 1Password/load-secrets-action@v1.3.1
with:
export-env: true # Export loaded secrets as environment variables
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
CREDENTIALS: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/ifkeehu5gzi7wy5ub5qvwkaire/credential"
- name: Install Node modules
run: npm install @actions/core @actions/github
- name: Close stale issues
id: close-stale-issues
uses: MobilityData/github-action-close-stale-prs@main
with:
github-token: ${{ env.CREDENTIALS }}
number-of-hours: 23
label-name: 'automated-content-update'