Skip to content

Commit

Permalink
Move bash workflow files to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Zjonn committed Oct 7, 2024
1 parent 91e2d0a commit 00aeaea
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ jobs:
with:
sparse-checkout: |
docs
.github/workflows/scripts
.github/workflows/scripts/bash
# Set environment path for scripts so we can access it later
- name: Update environment path
run: |
echo "${{ github.workspace }}/.github/workflows/scripts" >> $GITHUB_PATH
echo "${{ github.workspace }}/.github/workflows/scripts/bash" >> $GITHUB_PATH
# Retrieve the generated changelogs
- name: Download artifact changelog of FAF Develop
Expand All @@ -90,7 +90,7 @@ jobs:
run: |
cat generated/fafdevelop.md >> changelog/fafdevelop.md
cat generated/fafbeta.md >> changelog/fafbeta.md
# Update the posts directory contents
- name: Update changelog posts directory
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/docs-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ on:

jobs:

# By verifying the snippets we ensure that they're compatible with the bundling
# By verifying the snippets we ensure that they're compatible with the bundling
# process. In the future we can also add spell checking and/or checks for foul words.

verify:
name: Verify snippets
runs-on: ubuntu-latest
steps:

# We check out the scripts separate because the branch that we use to
# We check out the scripts separate because the branch that we use to
# generate the changelog may not contain the scripts that we want to work with.
- name: Checkout scripts
uses: actions/checkout@v4
with:
path: scripts
sparse-checkout: |
.github/workflows/scripts
.github/workflows/scripts/bash
- name: Checkout snippets
uses: actions/checkout@v4
Expand All @@ -76,30 +76,30 @@ jobs:
- name: Update environment path
run: |
ls
echo "${{ github.workspace }}/scripts/.github/workflows/scripts" >> $GITHUB_PATH
echo "${{ github.workspace }}/scripts/.github/workflows/scripts/bash" >> $GITHUB_PATH
- name: Verify the changelog snippets
working-directory: fa/changelog/snippets # script assumes it is in this directory
run: |
changelog-verify.sh
# During the bundling process we combine the templates, the sections and the snippets
# into a single changelog.
# into a single changelog.

bundle:
name: Bundle snippets
runs-on: ubuntu-latest
needs: [verify]
steps:

# We check out the scripts separate because the branch that we use to
# We check out the scripts separate because the branch that we use to
# generate the changelog may not contain the scripts that we want to work with.
- name: Checkout scripts
uses: actions/checkout@v4
with:
path: scripts
sparse-checkout: |
.github/workflows/scripts
.github/workflows/scripts/bash
- name: Checkout snippets
uses: actions/checkout@v4
Expand All @@ -111,7 +111,7 @@ jobs:
- name: Update environment path
run: |
echo "${{ github.workspace }}/scripts/.github/workflows/scripts" >> $GITHUB_PATH
echo "${{ github.workspace }}/scripts/.github/workflows/scripts/bash" >> $GITHUB_PATH
# We need to do this to remove `deploy/` from the reference. Specifically the `/` is problematic
- name: Update reference
Expand Down

0 comments on commit 00aeaea

Please sign in to comment.