-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.21 KB
/
update.yml
File metadata and controls
43 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update Providers (On Demand)
on:
workflow_dispatch:
jobs:
update-providers:
name: Update Providers (On Demand)
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Fetch & Update Providers
run: deno task fetch-data
- name: Commit changes
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Providers (on demand)
commit_options: '--no-verify'
- name: "Run if changes have been detected"
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: echo "Changes detected"
- name: "Run if no changes have been detected"
if: steps.auto-commit-action.outputs.changes_detected == 'false'
run: echo "No Changes detected"
- name: "Create Release"
if: steps.auto-commit-action.outputs.changes_detected == 'true'
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
tag_prefix: ""