mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -05:00
cleanup (#1378)
This commit is contained in:
parent
be0e288e1e
commit
1d0751b749
2 changed files with 2 additions and 56 deletions
56
.github/workflows/deploy-RELEASE.yml
vendored
56
.github/workflows/deploy-RELEASE.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue