Skip to content

Commit 2e1f3fa

Browse files
committed
Check actions repository availability
1 parent 4a3c776 commit 2e1f3fa

File tree

1 file changed

+44
-12
lines changed

1 file changed

+44
-12
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,19 @@ env:
2727

2828
jobs:
2929
build-and-test:
30+
permissions:
31+
contents: read
32+
actions: read
33+
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
3036

3137
strategy:
3238
matrix:
3339
include:
3440
- os: ubuntu-latest
3541
generator: Ninja
36-
platform-alias: "ubuntu22.04-x86_64"
42+
platform-alias: "ubuntu20.04-x86_64"
3743

3844
- os: windows-latest
3945
generator: "Visual Studio 17 2022"
@@ -62,22 +68,48 @@ jobs:
6268
# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6369
# aws_region: ${{ secrets.AWS_REGION }}
6470

71+
- name: Actions temp
72+
shell: bash
73+
run: |
74+
mkdir actions-temp
75+
76+
# - name: Checkout actions
77+
# uses: actions/checkout@v4
78+
# with:
79+
# repository: openDAQ/actions
80+
# ref: action-framework-download-release
81+
# path: ./actions-temp
82+
# token: ${{ secrets.PAT_TOKEN }}
83+
6584
- name: Compose framework filename
6685
id: compose-framework-filename
67-
uses: openDAQ/actions/framework-compose-filename@action-framework-compose-filename
86+
uses: openDAQ/actions/framework-compose-filename@action-framework-download-release
87+
# uses: ./actions-temp/framework-compose-filename
6888
with:
6989
platform: ${{ matrix.platform-alias }}
70-
token: ${{ secrets.GITHUB_TOKEN }}
90+
token: ${{ secrets.PAT_TOKEN }}
7191

72-
- name: Download openDAQ framework
73-
shell: bash
74-
env:
75-
DESTINATION_DIR: ${{ runner.temp }}
76-
OPENDAQ_VERSION: ${{ steps.compose-framework-filename.version }}
77-
OPENDAQ_FILENAME: ${{ steps.compose-framework-filename.filename }}
78-
run: |
79-
DESTINATION_DIR="$(echo "$DESTINATION_DIR" | sed 's|\\|/|g')"
80-
gh release download "${OPENDAQ_VERSION}" --pattern "${OPENDAQ_FILENAME}" --dir "${DESTINATION_DIR}" --repo openDAQ/openDAQ
92+
- name: Download framework filename
93+
id: download-framework-filename
94+
uses: openDAQ/actions/framework-download-release@action-framework-download-release
95+
# uses: ./actions-temp/framework-download-release
96+
with:
97+
artifact: ${{ steps.compose-framework-filename.outputs.filename }}
98+
version: ${{ steps.compose-framework-filename.outputs.version }}
99+
token: ${{ secrets.PAT_TOKEN }}
100+
101+
#- name: Download openDAQ framework
102+
# shell: bash
103+
# env:
104+
# DESTINATION_DIR: ${{ runner.temp }}
105+
# OPENDAQ_VERSION: ${{ steps.compose-framework-filename.outputs.version }}
106+
# OPENDAQ_FILENAME: ${{ steps.compose-framework-filename.outputs.filename }}
107+
# run: |
108+
# DESTINATION_DIR="$(echo "$DESTINATION_DIR" | sed 's|\\|/|g')"
109+
# echo "$DESTINATION_DIR"
110+
# echo "$OPENDAQ_FILENAME"
111+
# echo "$OPENDAQ_VERSION"
112+
# gh release download "${OPENDAQ_VERSION}" --pattern "${OPENDAQ_FILENAME}" --dir "${DESTINATION_DIR}" --repo openDAQ/openDAQ
81113

82114
- name: Install openDAQ framework package
83115
uses: ./.github/actions/framework-install

0 commit comments

Comments
 (0)