This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomer Figenblat <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
97 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
assignees: | ||
- "TomerFi" | ||
labels: | ||
- "type: dependencies" | ||
commit-message: | ||
prefix: "ci" | ||
include: "scope" | ||
#--- | ||
#version: 2 | ||
#updates: | ||
# - package-ecosystem: "github-actions" | ||
# directory: "/" | ||
# schedule: | ||
# interval: "daily" | ||
# assignees: | ||
# - "TomerFi" | ||
# labels: | ||
# - "type: dependencies" | ||
# commit-message: | ||
# prefix: "ci" | ||
# include: "scope" |
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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
--- | ||
name: Shabbat-API Released | ||
|
||
on: | ||
repository_dispatch: | ||
types: [shabbat-api-released] | ||
|
||
jobs: | ||
update_shabbat_times_script: | ||
runs-on: ubuntu-latest | ||
environment: deployment | ||
name: Update shabbat_times script with new Shabbat-API version | ||
steps: | ||
- name: Source checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
|
||
- name: Get new version from the event | ||
id: new_version | ||
run: echo "text=${{ github.event.client_payload.release }}" | xargs > $GITHUB_OUTPUT | ||
|
||
- name: Configure git | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
- name: Update shabbat_times script | ||
run: | ||
sed -i 's/\/\/DEPS info.tomfi.shabbat:shabbat-api:.*/\/\/DEPS info.tomfi.shabbat:shabbat-api:${{ steps.new_version.outputs.text }}/g; | ||
s/version = .*\,/version = "${{ steps.new_version.outputs.text }}",/g' src/shabbat_times.java | ||
|
||
- name: Commit and push back to repository | ||
run: | | ||
git add src/shabbat_times.java | ||
git commit -m "build(deps): bumped shabbat-api to ${{ steps.new_version.outputs.text }}" | ||
git push | ||
#--- | ||
#name: Shabbat-API Released | ||
# | ||
#on: | ||
# repository_dispatch: | ||
# types: [shabbat-api-released] | ||
# | ||
#jobs: | ||
# update_shabbat_times_script: | ||
# runs-on: ubuntu-latest | ||
# environment: deployment | ||
# name: Update shabbat_times script with new Shabbat-API version | ||
# steps: | ||
# - name: Source checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
# | ||
# - name: Get new version from the event | ||
# id: new_version | ||
# run: echo "text=${{ github.event.client_payload.release }}" | xargs > $GITHUB_OUTPUT | ||
# | ||
# - name: Configure git | ||
# run: | | ||
# git config user.name "${{ github.actor }}" | ||
# git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
# | ||
# - name: Update shabbat_times script | ||
# run: | ||
# sed -i 's/\/\/DEPS info.tomfi.shabbat:shabbat-api:.*/\/\/DEPS info.tomfi.shabbat:shabbat-api:${{ steps.new_version.outputs.text }}/g; | ||
# s/version = .*\,/version = "${{ steps.new_version.outputs.text }}",/g' src/shabbat_times.java | ||
# | ||
# - name: Commit and push back to repository | ||
# run: | | ||
# git add src/shabbat_times.java | ||
# git commit -m "build(deps): bumped shabbat-api to ${{ steps.new_version.outputs.text }}" | ||
# git push |
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