Skip to content

Commit c835a77

Browse files
authored
Merge pull request #875 from layer5io/copilot/fix-broken-workflow
[workflows] Fix syntax errors in generate-keys and generate-pricing-list workflows
2 parents a9fe753 + 99bd2f5 commit c835a77

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/generate-keys.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
fetch-depth: 1
2222
- name: Set spreadsheet_uri as environment variable
23-
run: echo "spreadsheet_uri=https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub?gid=64355745&single=true&output=csv" >> $GITHUB_ENV
24-
if: inputs.spreadsheet_uri != ''
25-
echo "spreadsheet_uri=${{ inputs.spreadsheet_uri }}" >> $GITHUB_ENV
23+
run: |
24+
if [ -n "${{ inputs.spreadsheet_uri }}" ]; then
25+
echo "spreadsheet_uri=${{ inputs.spreadsheet_uri }}" >> $GITHUB_ENV
26+
else
27+
echo "spreadsheet_uri=https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub?gid=64355745&single=true&output=csv" >> $GITHUB_ENV
28+
fi
2629
2730
- name: Dump keys from the spreadsheet
2831
run: |
29-
curl -L $spreadsheet_uri -o "./keys.csv";
32+
curl -L "$spreadsheet_uri" -o "./keys.csv";
3033
- name: Create permissions folder
3134
run: |
3235
[ ! -d "./static/data/csv" ] && mkdir -p "./static/data/csv";
@@ -39,4 +42,4 @@ jobs:
3942
commit_options: "--signoff"
4043
commit_user_name: l5io
4144
commit_user_email: [email protected]
42-
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>author of the commit that triggered the run
45+
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>

.github/workflows/generate-pricing-list.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@ jobs:
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- name: Check out code
18-
uses: actions/checkout@v6
18+
uses: actions/checkout@v4
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
2121
fetch-depth: 1
2222
- name: Set spreadsheet_uri as environment variable
23-
run: echo "spreadsheet_uri=https://docs.google.com/spreadsheets/d/1Ck_5q7U_vLSIDTtplugG3pCVC5zugXgTHtO7T7-yL8g/pub?output=csv" >> $GITHUB_ENV
24-
if: inputs.spreadsheet_uri != ''
25-
echo "spreadsheet_uri=${{ inputs.spreadsheet_uri }}" >> $GITHUB_ENV
23+
run: |
24+
if [ -n "${{ inputs.spreadsheet_uri }}" ]; then
25+
echo "spreadsheet_uri=${{ inputs.spreadsheet_uri }}" >> $GITHUB_ENV
26+
else
27+
echo "spreadsheet_uri=https://docs.google.com/spreadsheets/d/1Ck_5q7U_vLSIDTtplugG3pCVC5zugXgTHtO7T7-yL8g/pub?output=csv" >> $GITHUB_ENV
28+
fi
2629
2730
- name: Dump pricing list from the spreadsheet
2831
run: |
29-
curl -L $spreadsheet_uri -o "./pricing-list.csv";
32+
curl -L "$spreadsheet_uri" -o "./pricing-list.csv";
3033
- name: Create data folder
3134
run: |
3235
[ ! -d "./static/data/csv" ] && mkdir -p "./static/data/csv";
@@ -39,4 +42,4 @@ jobs:
3942
commit_options: "--signoff"
4043
commit_user_name: l5io
4144
commit_user_email: [email protected]
42-
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>author of the commit that triggered the run
45+
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>

0 commit comments

Comments
 (0)