This commit is contained in:
Lukas Gravley 2021-03-22 08:49:45 -05:00 committed by GitHub
parent be0e288e1e
commit 1d0751b749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 56 deletions

View file

@ -22,62 +22,6 @@ on:
# Set the Job # # Set the Job #
############### ###############
jobs: jobs:
no-run:
# Name the Job
name: Deploy Docker Image - Release
# Set the agent to run on
runs-on: ubuntu-latest
#########################################################
# Delete the created issue as it was created by someone #
# who is not authorized to create a release #
#########################################################
if: contains(github.event.issue.title, 'Super-Linter') &&
contains(github.event.issue.title, 'Release:') &&
github.actor != 'admiralawkbar' || github.actor != 'jwiebalk' ||
github.actor != 'IAmHughes' || github.actor != 'nemchik' ||
github.actor != 'Hanse00' || github.actor != 'github-actions' ||
github.actor != 'GaboFDC' || github.actor != 'ferrarimarco'
##################
# Load all steps #
##################
steps:
###########################
# Update the GitHub Issue #
###########################
- name: Update GitHub Issue
uses: actions/github-script@v3.1.0
id: update-issue
with:
# https://octokit.github.io/rest.js/v18#issues-create
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: "${{ github.event.issue.number }}",
title: "You have no power here",
body: '![](https://media.giphy.com/media/RX3vhj311HKLe/giphy.gif)'
})
##########################
# Close the GitHub Issue #
##########################
- name: Close GitHub Issue
uses: actions/github-script@v3.1.0
id: close-issue
with:
# https://octokit.github.io/rest.js/v18#issues-create
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: "${{ github.event.issue.number }}",
state: 'closed'
})
deploy: deploy:
# Name the Job # Name the Job
name: Deploy Docker Image - Release name: Deploy Docker Image - Release

View file

@ -8,3 +8,5 @@ runs:
branding: branding:
icon: 'check-square' icon: 'check-square'
color: 'white' color: 'white'
# You can view https://github.com/github/super-linter#environment-variables
# to see a comprehensive list of all environment variables that can be passed