You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@petri.apache.org by wa...@apache.org on 2024/06/11 01:29:19 UTC
(petri) branch preview/pelican-gha created (now 72339c4)
This is an automated email from the ASF dual-hosted git repository.
wave pushed a change to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
at 72339c4 Delete .github/workflows/lint.yml
This branch includes the following new commits:
new 68dd99e Output Branch Automation
new 67d6ebf Staging is apparently a bad branch add.
new 031362f OF: Typo
new 4b3052e Simplify the process
new c502d48 pipe to env
new 72339c4 Delete .github/workflows/lint.yml
The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(petri) 02/06: Staging is apparently a bad branch add.
Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
commit 67d6ebf4004ae0b384cfdee9d5d953696ede4ae7
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Mon Jun 10 17:30:21 2024 -0500
Staging is apparently a bad branch add.
---
.github/workflows/build-pelican.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build-pelican.yml b/.github/workflows/build-pelican.yml
index 05bf110..f6331c9 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -36,7 +36,7 @@ jobs:
if [ "${{ env.BRANCH_NAME }}" == "${{ github.event.repository.default_branch }}" ]; then
echo "OUTPUT_BRANCH=asf-site" >> $GITHUB_ENV
else
- echo "OUTPUT_BRANCH=$${{ env.BRANCH_NAME }}-staging" >> $GITHUB_ENV
+ echo "OUTPUT_BRANCH=$${{ env.BRANCH_NAME }}-site" >> $GITHUB_ENV
fi
- name: Pelican Build
uses: apache/infrastructure-actions/pelican@main
(petri) 01/06: Output Branch Automation
Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
commit 68dd99e03676d86fc00826cb821ebea996e94cae
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Mon Jun 10 17:24:45 2024 -0500
Output Branch Automation
---
.github/workflows/build-pelican.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build-pelican.yml b/.github/workflows/build-pelican.yml
index e80dd43..05bf110 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -33,7 +33,12 @@ jobs:
- name: Branch
run: |
echo "Branch: ${{ env.BRANCH_NAME }}"
+ if [ "${{ env.BRANCH_NAME }}" == "${{ github.event.repository.default_branch }}" ]; then
+ echo "OUTPUT_BRANCH=asf-site" >> $GITHUB_ENV
+ else
+ echo "OUTPUT_BRANCH=$${{ env.BRANCH_NAME }}-staging" >> $GITHUB_ENV
+ fi
- name: Pelican Build
uses: apache/infrastructure-actions/pelican@main
with:
- destination: ${{ env.BRANCH_NAME }}-site
+ destination: ${{ env.OUTPUT_BRANCH }}
(petri) 06/06: Delete .github/workflows/lint.yml
Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
commit 72339c4c8b48695184b5cd9467d65b36d8accf93
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Mon Jun 10 20:22:50 2024 -0500
Delete .github/workflows/lint.yml
---
.github/workflows/lint.yml | 89 ----------------------------------------------
1 file changed, 89 deletions(-)
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
deleted file mode 100644
index 420e0d2..0000000
--- a/.github/workflows/lint.yml
+++ /dev/null
@@ -1,89 +0,0 @@
-name: Lint
-
-on:
- workflow_dispatch:
- inputs:
- logLevel:
- description: 'Log level'
- required: true
- default: 'warning'
- tags:
- description: 'Perform Lint Check'
-
-jobs:
- flake8:
- name: Flake8
- runs-on: ubuntu-latest
- strategy:
- matrix:
- python-version: [3.8]
- steps:
- - uses: actions/checkout@v2
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v2
- with:
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install flake8
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- - name: Lint with flake8
- run: |
- # stop the build if there are Python syntax errors or undefined names
- flake8 . --count --ignore=E201,E501 --show-source --statistics
- markdownlint:
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os:
- - ubuntu-latest
- node_version:
- - 14
- architecture:
- - x64
- name: Markdown Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v2
- - name: Setup node
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node_version }}
- architecture: ${{ matrix.architecture }}
- - run: npm install -g markdownlint-cli@0.27.1
- - run: markdownlint '**/*.md'
- misspell:
- name: Check Spelling
- runs-on: ubuntu-latest
- steps:
- - name: Check Out
- uses: actions/checkout@v2
- - name: Install
- run: |
- wget -O - -q https://git.io/misspell | sh -s -- -b .
- - name: Misspell
- run: |
- git ls-files --empty-directory | xargs ./misspell -error
- trailing-whitespace:
- name: Trailing whitespace
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Check for trailing whitespace
- run: "! git grep -EIn $'[ \t]+$'"
- yamllint:
- name: YAML
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-python@v2
- with:
- python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install yamllint
- - name: YAML Lint
- run: |
- yamllint --strict .
(petri) 03/06: OF: Typo
Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
commit 031362f69c9c88d7b9af06c703f884ab118371f8
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Mon Jun 10 17:33:06 2024 -0500
OF: Typo
---
.github/workflows/build-pelican.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build-pelican.yml b/.github/workflows/build-pelican.yml
index f6331c9..6f83c29 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -36,7 +36,7 @@ jobs:
if [ "${{ env.BRANCH_NAME }}" == "${{ github.event.repository.default_branch }}" ]; then
echo "OUTPUT_BRANCH=asf-site" >> $GITHUB_ENV
else
- echo "OUTPUT_BRANCH=$${{ env.BRANCH_NAME }}-site" >> $GITHUB_ENV
+ echo "OUTPUT_BRANCH=${{ env.BRANCH_NAME }}-staging" >> $GITHUB_ENV
fi
- name: Pelican Build
uses: apache/infrastructure-actions/pelican@main
(petri) 04/06: Simplify the process
Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
commit 4b3052ea7e8e67cc301b7895a4ab03d7ad9fc06e
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Mon Jun 10 19:47:09 2024 -0500
Simplify the process
---
.github/workflows/build-pelican.yml | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/build-pelican.yml b/.github/workflows/build-pelican.yml
index 6f83c29..1275812 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -17,20 +17,12 @@ jobs:
with:
ref: ${{ github.event.inputs.branch || github.head_ref || github.ref }}
- name: Determine branch name
- id: get_branch
+ id: determine_branch
run: |
- if [ "${{ github.event_name }}" == "pull_request" ]; then
- echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
- elif [ "${{ github.event_name }}" == "push" ]; then
- echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
- if [ "${{ github.event.inputs.branch }}" != "" ]; then
- echo "BRANCH_NAME=${{ github.event.inputs.branch }}" >> $GITHUB_ENV
- else
- echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
- fi
- fi
+ # Get the current branch name
+ BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
- name: Branch
+ id: determine_output_branch
run: |
echo "Branch: ${{ env.BRANCH_NAME }}"
if [ "${{ env.BRANCH_NAME }}" == "${{ github.event.repository.default_branch }}" ]; then
(petri) 05/06: pipe to env
Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch preview/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
commit c502d4847da9dfd7f97bf908aa7232a459b21bba
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Mon Jun 10 19:49:05 2024 -0500
pipe to env
---
.github/workflows/build-pelican.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build-pelican.yml b/.github/workflows/build-pelican.yml
index 1275812..4fba25c 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -20,7 +20,7 @@ jobs:
id: determine_branch
run: |
# Get the current branch name
- BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
+ echo "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
- name: Branch
id: determine_output_branch
run: |