Correct expressions in GitHub Actions workflows (#1952)

* Correct expressions in stale workflow

* Fix other workflows

* Fix typos

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
This commit is contained in:
Barry Pollard 2021-09-14 14:32:24 +01:00 committed by GitHub
parent a0d7037e02
commit 1930e2f9a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 16 deletions

View file

@ -30,8 +30,8 @@ jobs:
# Set the agent to run on
runs-on: ubuntu-latest
# Prevent duplicate run from happening when a forked push is committed
if: ${{ github.event_name }} == 'push' ||
${{ github.event.pull_request.head.repo.full_name }} != ${{ github.repository }}
if: ${{ github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository }}
##################
# Load all steps #
##################

View file

@ -30,8 +30,8 @@ jobs:
# Set the agent to run on
runs-on: ubuntu-latest
# Prevent duplicate run from happening when a forked push is committed
if: ${{ github.event_name }} == 'push' ||
${{ github.event.pull_request.head.repo.full_name }} != ${{ github.repository }}
if: ${{ github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository }}
##################
# Load all steps #
##################

View file

@ -29,7 +29,7 @@ jobs:
# Set the agent to run on
runs-on: ubuntu-latest
# Only run this on the main repo
if: ${{ github.repository }} == 'github/super-linter'
if: ${{ github.repository == 'github/super-linter' }}
##################
# Load all steps #
##################

View file

@ -29,7 +29,7 @@ jobs:
# Set the agent to run on
runs-on: ubuntu-latest
# Only run this on the main repo
if: ${{ github.repository }} == 'github/super-linter'
if: ${{ github.repository == 'github/super-linter' }}
##################
# Load all steps #
##################

View file

@ -31,10 +31,10 @@ jobs:
#####################################################################
# Only run if Admin start job and it was the Release Issue template #
#####################################################################
if: ${{ 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'
if: ${{ 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 #

View file

@ -31,10 +31,10 @@ jobs:
#####################################################################
# Only run if Admin start job and it was the Release Issue template #
#####################################################################
if: ${{ 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'
if: ${{ 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 #

View file

@ -26,7 +26,7 @@ jobs:
markstale:
runs-on: ubuntu-latest
# only run on schedule
if: ${{ github.event_name }} == 'schedule'
if: ${{ github.event_name == 'schedule' }}
steps:
- name: Mark issue stale
uses: actions/stale@v4
@ -47,7 +47,7 @@ jobs:
marknotstale:
runs-on: ubuntu-latest
# do not run on schedule
if: "${{ github.event_name }} == 'issue_comment' && contains(github.event.issue.labels.*.name, 'O: stale 🤖') && ${{ github.event.issue.user.type }} != 'Bot'"
if: "${{ github.event_name == 'issue_comment' }} && contains(github.event.issue.labels.*.name, 'O: stale 🤖') && ${{ github.event.issue.user.type != 'Bot' }}"
steps:
- name: Mark issue not stale
uses: actions/github-script@v4.1