File: cleanup.yml

package info (click to toggle)
ruby-mongo 2.21.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,764 kB
  • sloc: ruby: 108,806; makefile: 5; sh: 2
file content (44 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Dry-Run Cleanup"
run-name: "Dry Run Cleanup for ${{ github.ref }}"

on:
  workflow_dispatch:
    inputs:
      confirm:
        description: Indicate whether you want this workflow to run (must be "true")
        required: true
        type: string
      tag:
        description: The name of the tag (and release) to clean up
        required: true
        type: string

jobs:
  release:
    name: "Dry-Run Cleanup"
    environment: release
    runs-on: 'ubuntu-latest'
    if: ${{ inputs.confirm == 'true' }}

    permissions:
      # required for all workflows
      security-events: write

      # required to fetch internal or private CodeQL packs
      packages: read

      # only required for workflows in private repositories
      actions: read
      contents: write

      # required by the mongodb-labs/drivers-github-tools/setup@v2 step
      # also required by `rubygems/release-gem`
      id-token: write

    steps:
      - name: "Run the cleanup action"
        uses: mongodb-labs/drivers-github-tools/ruby/cleanup@v2
        with:
          app_id: ${{ vars.APP_ID }}
          app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
          tag: ${{ inputs.tag }}