forked from super-linter/super-linter
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be0e288
commit 1d0751b
Showing
2 changed files
with
2 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters