-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sacha Greif
committed
Nov 25, 2024
1 parent
6878e98
commit b186651
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Ping API on Commit | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" # Trigger on any branch | ||
|
||
jobs: | ||
ping-api: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get Repository Name | ||
id: repo_name | ||
run: echo "::set-output name=name::$(basename $GITHUB_REPOSITORY)" | ||
|
||
- name: Ping API | ||
env: | ||
SECRET_KEY: ${{ secrets.SECRET_KEY }} # Set your secret in repository settings | ||
run: | | ||
curl -X GET \ | ||
"http://localhost:4020/gh-actions/reinitialize-locale?locale=${{ steps.repo_name.outputs.name }}&secretKey=$SECRET_KEY" |