You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/06/17 15:18:33 UTC
[airflow-site] branch main updated: Cleanups for new docs actions (#816)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new cc909192f5 Cleanups for new docs actions (#816)
cc909192f5 is described below
commit cc909192f5fca05c6ed7cb388e88cb2a9207a5e4
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sat Jun 17 17:18:28 2023 +0200
Cleanups for new docs actions (#816)
* remove unused action
* better log output for the custom git commands
* uploaded git log as artifacts
* Explicit fetch-depth 1 for initial commit
---
.../actions/JamesIves-github-pages-deploy-action | 1 -
.github/actions/pre-commmit-action | 1 -
.github/workflows/build.yml | 23 ++++++++++++++++++----
.gitmodules | 4 ----
4 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/.github/actions/JamesIves-github-pages-deploy-action b/.github/actions/JamesIves-github-pages-deploy-action
deleted file mode 160000
index 4bcd906976..0000000000
--- a/.github/actions/JamesIves-github-pages-deploy-action
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 4bcd90697694c026f5bf40ee1e4ceed5b5c9fcf6
diff --git a/.github/actions/pre-commmit-action b/.github/actions/pre-commmit-action
deleted file mode 160000
index 0764670bf3..0000000000
--- a/.github/actions/pre-commmit-action
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 0764670bf370aab253130d534e1eda7ff497dc60
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 838ad4b030..d1274c38f6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -39,7 +39,7 @@ jobs:
with:
submodules: recursive
lfs: true
- depth: 1
+ fetch-depth: 1
- name: Display disk free
run: ./.github/scripts/print_df.sh
- name: ๐ Setup Python
@@ -112,12 +112,27 @@ jobs:
if: ${{ github.event_name == 'push' }}
working-directory: dist
run: |
- git add .
+ ../.github/scripts/print_df.sh
+ git add . > ../git_add.log
+ echo "::group::config"
git config user.name "GitHub Actions"
git config user.email "actions@users.noreply.github.com"
- git commit --amend --no-edit
+ echo "::endgroup::"
+ echo "::group::commit"
+ git commit --amend --no-edit > ../git_commit.log
+ echo "::group::push --force"
+ ../.github/scripts/print_df.sh
+ echo "::group::push --force"
git push --force origin gh-pages
- - name: ๐ง Copy files from site to theme๏ธ
+ echo "::group::push --force"
+ ../.github/scripts/print_df.sh
+ - name: ๐ Upload git logs as artifacts
+ uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
+ with:
+ name: airflow-sphinx-theme
+ path: './git_*.log'
+ retention-days: 5
+ - name: ๐ง Copy files from site to theme
run: |
./site.sh prepare-theme
./.github/scripts/print_df.sh
diff --git a/.gitmodules b/.gitmodules
index df609dfbae..584425d26c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -18,10 +18,6 @@
[submodule "landing-pages/site/themes/docsy"]
path = landing-pages/site/themes/docsy
url = https://github.com/google/docsy.git
-
[submodule ".github/actions/pre-commmit-action"]
path = .github/actions/pre-commmit-action
url = git@github.com:pre-commit/action.git
-[submodule ".github/actions/JamesIves-github-pages-deploy-action"]
- path = .github/actions/JamesIves-github-pages-deploy-action
- url = git@github.com:JamesIves/github-pages-deploy-action.git