Skip to content

Commit

Permalink
maven.yaml and docs.yaml no more depends on reflect_test_commit.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers committed Jun 27, 2024
1 parent e2ad1cd commit 7929afd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ name: CI_DOCS
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_run:
workflows: ["CI_REFLECT_TEST_COMMIT"]
branches: [master]
types:
- completed
push:
# only trigger on branches, not on tags
branches: 'master'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check:
if: ${{ github.repository_owner == 'masesgroup' }} #do not execute outside main repo
name: Check changed files
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
run_job: ${{ steps.check_files.outputs.run_job }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -207,7 +205,7 @@ jobs:
REPO: masesgroup/FrameworkDocs

- name: Request a PR to commit changes
if: ${{ github.repository_owner == 'masesgroup' }} # do not push any changes outside main repo or GeneratePR is false
if: ${{ github.repository_owner == 'masesgroup' }} # do not push any changes outside main repo
uses: peter-evans/create-pull-request@v6
with:
branch-suffix: short-commit-hash
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ name: CI_MAVEN
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_run:
workflows: ["CI_REFLECT_TEST_COMMIT"]
branches: [master]
types:
- completed
push:
# only trigger on branches, not on tags
branches: 'master'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check:
if: ${{ github.repository_owner == 'masesgroup' }} # do not execute outside main repo
name: Check changed files
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
run_job: ${{ steps.check_files.outputs.run_job }}
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reflect_test_commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ jobs:
run: |
gh extension install actions/gh-actions-cache
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list --key JCOReflector_${{ github.run_number }}_${{ github.run_attempt }} )
cacheKeysForPR=$(gh actions-cache list --key JCOReflector_${{ github.run_number }}_${{ github.run_attempt }} | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
Expand Down

0 comments on commit 7929afd

Please sign in to comment.