Skip to content

Commit

Permalink
Template repository changes: remal/oss-template (#411)
Browse files Browse the repository at this point in the history
Co-authored-by: remal-gradle-plugins <77341723+remal-gradle-plugins+sync-with-template@users.noreply.github.com>
  • Loading branch information
remal and remal-gradle-plugins authored Nov 26, 2024
1 parent d060814 commit 621098b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bump-repository-activity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ jobs:
echo "::warning::Not enough rate limits!"
if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
echo 'enough=true' >> $GITHUB_OUTPUT
else
echo 'enough=false' >> $GITHUB_OUTPUT
fi
echo 'enough=false' >> $GITHUB_OUTPUT
fi
- name: Bump repository activity
if: ${{env.PUSH_BACK_TOKEN && (github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true)}}
if: ${{env.PUSH_BACK_TOKEN && fromJSON(steps.decision.outputs.enough) == true}}
uses: remal-github-actions/bump-repository-activity@v1
with:
githubToken: ${{env.PUSH_BACK_TOKEN}}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/check-action-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ jobs:
echo "::warning::Not enough rate limits!"
if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
echo 'enough=true' >> $GITHUB_OUTPUT
else
echo 'enough=false' >> $GITHUB_OUTPUT
fi
echo 'enough=false' >> $GITHUB_OUTPUT
fi
- name: Check action secrets
if: ${{github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true}}
if: ${{fromJSON(steps.decision.outputs.enough) == true}}
uses: remal-github-actions/check-action-secrets@v1
with:
githubToken: ${{secrets.LIST_SECRETS}}
6 changes: 4 additions & 2 deletions .github/workflows/codeowners-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,18 @@ jobs:
echo "::warning::Not enough rate limits!"
if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
echo 'enough=true' >> $GITHUB_OUTPUT
else
echo 'enough=false' >> $GITHUB_OUTPUT
fi
echo 'enough=false' >> $GITHUB_OUTPUT
fi
outputs:
enough: ${{steps.decision.outputs.enough}}

codeowners-validation:
needs:
- rate-limits
if: ${{github.event_name != 'schedule' || fromJSON(needs.rate-limits.outputs.enough) == true}}
if: ${{fromJSON(needs.rate-limits.outputs.enough) == true}}
runs-on: ubuntu-latest
timeout-minutes: 15
concurrency:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/rebase-dependabot-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ jobs:
echo "::warning::Not enough rate limits!"
if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
echo 'enough=true' >> $GITHUB_OUTPUT
else
echo 'enough=false' >> $GITHUB_OUTPUT
fi
echo 'enough=false' >> $GITHUB_OUTPUT
fi
- name: Rebase Dependabot pull requests
if: ${{github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true}}
if: ${{fromJSON(steps.decision.outputs.enough) == true}}
uses: remal-github-actions/rebase-dependabot-pull-requests@v1
with:
githubToken: ${{env.PUSH_BACK_TOKEN}}
6 changes: 4 additions & 2 deletions .github/workflows/sync-with-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ jobs:
echo "::warning::Not enough rate limits!"
if [ "${{github.event_name != 'schedule'}}" == "true" ]; then
echo "::warning::Executing anyway, as event is '${{github.event_name}}'"
echo 'enough=true' >> $GITHUB_OUTPUT
else
echo 'enough=false' >> $GITHUB_OUTPUT
fi
echo 'enough=false' >> $GITHUB_OUTPUT
fi
- name: Sync with template repository
if: ${{env.PUSH_BACK_TOKEN && (github.event_name != 'schedule' || fromJSON(steps.decision.outputs.enough) == true)}}
if: ${{env.PUSH_BACK_TOKEN && fromJSON(steps.decision.outputs.enough) == true}}
uses: remal-github-actions/sync-with-template@v3
with:
githubToken: ${{env.PUSH_BACK_TOKEN}}
Expand Down

0 comments on commit 621098b

Please sign in to comment.