-
-
Notifications
You must be signed in to change notification settings - Fork 13
92 lines (81 loc) · 2.47 KB
/
integration.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Integration Tests 🧪
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: 30 15 * * 0-6
push:
tags-ignore:
- '*.*'
branches:
- releases/v*
jobs:
refresh-api-data:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Fetch UTF8 Data 📦
id: validate
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: https://jsonplaceholder.typicode.com/todos/1
save-location: fetch-api-data-custom
save-name: todo
retry: true
- name: Access environment variable output
run: |
echo "${fetchApiData}"
- name: Access step output
run: |
echo "Output: ${{ steps.validate.outputs.fetchApiData }}"
- name: Build and Deploy Repo 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: fetch-api-data-custom
target-folder: data
ssh-key: ${{ secrets.DEPLOY_KEY }}
refresh-api-data-modified-formatting-encoding:
runs-on: ubuntu-latest
needs: refresh-api-data
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Fetch Hex encoded Data 📦
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: https://hexendpoint-y87ci26b7sb3.runkit.sh/
save-location: fetch-api-data-custom-encoding
save-name: hexendpointdata
encoding: hex
format: txt
retry: true
- name: Fetch Base64 Data 📦
id: validate
uses: JamesIves/fetch-api-data-action@v2
with:
endpoint: https://base64endpoint-hfdurtfq9iyz.runkit.sh/
save-location: fetch-api-data-custom-encoding
save-name: base64endpointdata
encoding: base64
format: txt
variable-name: CATS
retry: true
- name: Access environment variable output
run: |
echo "${CATS}"
- name: Access step output
run: |
echo "Output: ${{ steps.validate.outputs.fetchApiData }}"
- name: Build and Deploy Repo 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: fetch-api-data-custom-encoding
target-folder: encoding
ssh-key: ${{ secrets.DEPLOY_KEY }}