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 # Set the agent to run on
runs-on: ubuntu-latest runs-on: ubuntu-latest
# Prevent duplicate run from happening when a forked push is committed # Prevent duplicate run from happening when a forked push is committed
if: ${{ github.event_name }} == 'push' || if: ${{ github.event_name == 'push' ||
${{ github.event.pull_request.head.repo.full_name }} != ${{ github.repository }} github.event.pull_request.head.repo.full_name != github.repository }}
################## ##################
# Load all steps # # Load all steps #
################## ##################

View file

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

View file

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

View file

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

View file

@ -31,10 +31,10 @@ jobs:
##################################################################### #####################################################################
# Only run if Admin start job and it was the Release Issue template # # Only run if Admin start job and it was the Release Issue template #
##################################################################### #####################################################################
if: ${{ github.actor }} == 'admiralawkbar' || ${{ github.actor }} == 'jwiebalk' || if: ${{ github.actor == 'admiralawkbar' || github.actor == 'jwiebalk' ||
${{ github.actor }} == 'IAmHughes' || ${{ github.actor }} == 'nemchik' || github.actor == 'IAmHughes' || github.actor == 'nemchik' ||
${{ github.actor }} == 'Hanse00' || ${{ github.actor }} == 'github-actions' || github.actor == 'Hanse00' || github.actor == 'github-actions' ||
${{ github.actor }} == 'GaboFDC' || ${{ github.actor }} == 'ferrarimarco' github.actor == 'GaboFDC' || github.actor == 'ferrarimarco' }}
################## ##################
# Load all steps # # Load all steps #

View file

@ -31,10 +31,10 @@ jobs:
##################################################################### #####################################################################
# Only run if Admin start job and it was the Release Issue template # # Only run if Admin start job and it was the Release Issue template #
##################################################################### #####################################################################
if: ${{ github.actor }} == 'admiralawkbar' || ${{ github.actor }} == 'jwiebalk' || if: ${{ github.actor == 'admiralawkbar' || github.actor == 'jwiebalk' ||
${{ github.actor }} == 'IAmHughes' || ${{ github.actor }} == 'nemchik' || github.actor == 'IAmHughes' || github.actor == 'nemchik' ||
${{ github.actor }} == 'Hanse00' || ${{ github.actor }} == 'github-actions' || github.actor == 'Hanse00' || github.actor == 'github-actions' ||
${{ github.actor }} == 'GaboFDC' || ${{ github.actor }} == 'ferrarimarco' github.actor == 'GaboFDC' || github.actor == 'ferrarimarco' }}
################## ##################
# Load all steps # # Load all steps #

View file

@ -26,7 +26,7 @@ jobs:
markstale: markstale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# only run on schedule # only run on schedule
if: ${{ github.event_name }} == 'schedule' if: ${{ github.event_name == 'schedule' }}
steps: steps:
- name: Mark issue stale - name: Mark issue stale
uses: actions/stale@v4 uses: actions/stale@v4
@ -47,7 +47,7 @@ jobs:
marknotstale: marknotstale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# do not run on schedule # 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: steps:
- name: Mark issue not stale - name: Mark issue not stale
uses: actions/github-script@v4.1 uses: actions/github-script@v4.1