Skip to content

Commit 2327e89

Browse files
authored
Remove trailing whitespace from GitHub workflows (#154)
Remove trailing whitespace from GitHub workflows
1 parent 2d262dc commit 2327e89

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: container project - PR/merge build
22

3-
on:
3+
on:
44
pull_request:
55
types: [opened, reopened, synchronize]
66
push:
77
branches:
88
- main
99
- release/*
1010

11-
jobs:
11+
jobs:
1212
build:
1313
name: Invoke build
1414
uses: ./.github/workflows/common.yml

.github/workflows/common.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: container project - common jobs
22

3-
on:
3+
on:
44
workflow_call:
55
inputs:
66
release:
7-
type: boolean
7+
type: boolean
88
description: "Publish this build for release"
99
default: false
1010

1111
jobs:
12-
buildAndTest:
12+
buildAndTest:
1313
name: Build and test the project
1414
timeout-minutes: 30
1515
runs-on: [self-hosted, macos, sequoia, ARM64]
@@ -18,40 +18,40 @@ jobs:
1818
packages: read
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 0
2424
- name: Update containerization
25-
run: |
25+
run: |
2626
/usr/bin/swift package update containerization
2727
- name: Check formatting
28-
run: |
28+
run: |
2929
./scripts/install-hawkeye.sh
3030
make fmt
31-
if ! git diff --quiet -- . ':(exclude)Package.swift' ':(exclude)Package.resolved'; then echo "The following files require formatting or license header updates:\n$(git diff --name-only)" ; false ; fi
32-
- name: Check protobuf
33-
run: |
34-
make protos
31+
if ! git diff --quiet -- . ':(exclude)Package.swift' ':(exclude)Package.resolved'; then echo "The following files require formatting or license header updates:\n$(git diff --name-only)" ; false ; fi
32+
- name: Check protobuf
33+
run: |
34+
make protos
3535
3636
# TODO [launch]: TEMPORARILY we need to exclude these files since we had to modify them to add
37-
# the github token for pulling the private repos.
38-
if ! git diff --quiet -- . ':(exclude)Package.swift' ':(exclude)Package.resolved' ':(exclude)Protobuf.Makefile'; then echo "The following files require formatting or license header updates:\n$(git diff --name-only)" ; false ; fi
37+
# the github token for pulling the private repos.
38+
if ! git diff --quiet -- . ':(exclude)Package.swift' ':(exclude)Package.resolved' ':(exclude)Protobuf.Makefile'; then echo "The following files require formatting or license header updates:\n$(git diff --name-only)" ; false ; fi
3939
env:
4040
CURRENT_SDK: y
4141
- name: Set build configuration
4242
run: |
4343
echo "BUILD_CONFIGURATION=debug" >> $GITHUB_ENV
44-
if [ ${{ inputs.release }} == true ]; then
44+
if [ ${{ inputs.release }} == true ]; then
4545
echo "BUILD_CONFIGURATION=release" >> $GITHUB_ENV
4646
fi
4747
- name: Make the container project and docs
48-
run: |
48+
run: |
4949
make container dsym docs
5050
tar cfz _site.tgz _site
5151
env:
5252
DEVELOPER_DIR: "/Applications/Xcode_16.3.app/Contents/Developer"
5353
CURRENT_SDK: y
54-
- name: Create package
54+
- name: Create package
5555
run: |
5656
mkdir -p outputs
5757
mv bin/${{ env.BUILD_CONFIGURATION }}/container-installer-unsigned.pkg outputs

.github/workflows/docs-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Manual workflow for releasing docs ad-hoc. Workflow can only be run for main or release branches.
1+
# Manual workflow for releasing docs ad-hoc. Workflow can only be run for main or release branches.
22
# Workflow does NOT publish a release of container.
33
name: Deploy application website
4-
on:
4+
on:
55
workflow_dispatch:
66

7-
jobs:
7+
jobs:
88
checkBranch:
99
runs-on: ubuntu-latest
1010
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release')
1111
steps:
12-
- name: Branch validation
12+
- name: Branch validation
1313
run: echo "Branch ${{ github.ref_name }} is allowed"
1414

1515
buildSite:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: container project - release build
22

3-
on:
4-
push:
3+
on:
4+
push:
55
tags:
66
- "[0-9]+.[0-9]+.[0-9]+"
77

8-
jobs:
8+
jobs:
99
build:
1010
name: Invoke build and release
1111
uses: ./.github/workflows/common.yml
12-
with:
12+
with:
1313
release: true
1414
secrets: inherit
1515
permissions:

0 commit comments

Comments
 (0)