Skip to content

Commit

Permalink
(WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygoldfeld committed Feb 25, 2024
1 parent 120f705 commit b5d3d1a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,18 @@ jobs:
needs: set-vars
runs-on: ubuntu-latest
steps:
- name: Checkout VERSION file and tag history
uses: actions/checkout@v4
with:
path: 'version_work'
sparse-checkout: VERSION
fetch-depth: 0 # Get all history regarding tags.
- name: Checkout VERSION file and tag history XXX
uses: actions/checkout@v4
with:
path: 'version_work2'
sparse-checkout: VERSIONXXX
fetch-depth: 0 # Get all history regarding tags.
- id: compute_proceed_else_not
name: Compute whether for main jobs to proceed or not
# For checking whether github.event.head_commit.message starts with needs.set-vars.outputs.doc-commit-message
Expand All @@ -123,7 +135,8 @@ jobs:
if [ '${{ github.ref }}' != 'refs/heads/main' ] || \
[ '${{ github.event_name }}' != 'push' ] || \
! { head --lines=1 $TMP_MSG | fgrep -xq '${{ needs.set-vars.outputs.doc-commit-message }}'; }; then
echo 'proceed-else-not=true' >> $GITHUB_OUTPUT
# XXX no! true!
echo 'proceed-else-not=false' >> $GITHUB_OUTPUT
else
echo 'proceed-else-not=false' >> $GITHUB_OUTPUT
echo 'The real jobs will not run: earlier `doc-and-release` job checked-in generated docs to `main`.'
Expand Down

0 comments on commit b5d3d1a

Please sign in to comment.