Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Checkout
description: Checkout a Git repository at a particular version
# Based on https://github.com/actions/checkout/blob/main/action.yml

inputs:
ref:
description: >
The branch, tag or SHA to checkout. When checking out the repository that
triggered a workflow, this defaults to the reference or SHA for that
event. Otherwise, uses the default branch.
required: false
type: string
persist-credentials:
description: Whether to configure the token or SSH key with the local git config
required: false
type: boolean
default: true
fetch-depth:
description: Number of commits to fetch. 0 indicates all history for all branches and tags.
required: false
type: number
default: 1
outputs:
ref:
description: The branch, tag or SHA that was checked out
value: ${{ steps.checkout.outputs.ref }}
commit:
description: The commit SHA that was checked out
value: ${{ steps.checkout.outputs.commit }}

runs:
using: "composite"
steps:
- name: Checkout Code
id: checkout
uses: actions/checkout@v7.0.0
with:
ref: ${{ inputs.ref != '' && inputs.ref || '' }}
persist-credentials: ${{ inputs.persist-credentials }}
fetch-depth: ${{ inputs.fetch-depth }}
28 changes: 28 additions & 0 deletions .github/actions/first-interaction/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: First Interaction
description: Greet first-time contributors when they open an issue or PR
# Based on https://github.com/actions/first-interaction/blob/main/action.yml

inputs:
issue_message:
description: Comment to post on an individual's first issue
required: false
type: string
pr_message:
description: Comment to post on an individual's first pull request
required: false
type: string
repo_token:
description: Token with permissions to post issue and PR comments
required: true
type: string
default: ${{ github.token }}

runs:
using: "composite"
steps:
- name: First Interaction
uses: actions/first-interaction@v3.1.0
with:
issue_message: ${{ inputs.issue_message != '' && inputs.issue_message || '' }}
pr_message: ${{ inputs.pr_message != '' && inputs.pr_message || '' }}
repo_token: ${{ inputs.repo_token }}
6 changes: 3 additions & 3 deletions .github/workflows/docker-mod-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo (Commit)
uses: actions/checkout@v7
uses: actions/checkout@v7.0.0
if: ${{ github.event_name != 'pull_request_target' }}
with:
persist-credentials: false

- name: Check Out Repo (PR)
uses: actions/checkout@v7
uses: actions/checkout@v7.0.0
if: ${{ github.event_name == 'pull_request_target' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -70,7 +70,7 @@ jobs:
echo "> MULTI_ARCH=${{ inputs.MULTI_ARCH || 'false' }}" >> $GITHUB_STEP_SUMMARY

- name: Set up QEMU
uses: docker/setup-qemu-action@v4
uses: docker/setup-qemu-action@v4.2.0

- name: Build image
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/init-svc-executable-permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
permission_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
Expand Down