Skip to content

Commit

Permalink
Try to use the full repo/branch ref as an env var
Browse files Browse the repository at this point in the history
  • Loading branch information
plocket committed Aug 18, 2023
1 parent 4ed3242 commit fdac856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/github_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
SECRET_VAR1: secret-var1-value
SECRET_VAR2: secret-var2-value
SECRET_FOR_MISSING_FIELD: secret for missing field
BRANCH: ${{ github.ref }}
BRANCH_REF: "SuffolkLITLab/ALKiln@${{ github.ref }}"

steps:
- uses: actions/checkout@v3
Expand All @@ -46,7 +46,7 @@ jobs:
id: github_server
# TODO: Research how to get this to always be the same branch we're on
# Would ${{ ref or whatever }} work?
uses: SuffolkLITLab/ALKiln/github_server@$BRANCH
uses: $BRANCH_REF
with:
CONFIG_CONTENTS: "${{ secrets.CONFIG_CONTENTS }}"
#
Expand All @@ -55,7 +55,7 @@ jobs:
if: ${{ success() }}
# TODO: Research how to get this to always be the same branch we're on
# Would ${{ ref or whatever }} work?
uses: SuffolkLITLab/ALKiln@$BRANCH
uses: $BRANCH_REF
with:
SERVER_URL: "${{ steps.github_server.outputs.SERVER_URL }}"
DOCASSEMBLE_DEVELOPER_API_KEY: "${{ steps.github_server.outputs.DOCASSEMBLE_DEVELOPER_API_KEY }}"
Expand Down

0 comments on commit fdac856

Please sign in to comment.