Skip to content

Commit

Permalink
cleanup (super-linter#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
admiralAwkbar authored Mar 22, 2021
1 parent be0e288 commit 1d0751b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 56 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/deploy-RELEASE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,62 +22,6 @@ on:
# Set the Job #
###############
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/[email protected]
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/[email protected]
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:
# Name the Job
name: Deploy Docker Image - Release
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ runs:
branding:
icon: 'check-square'
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

0 comments on commit 1d0751b

Please sign in to comment.