Skip to content

Commit

Permalink
Fix GitHub secrets in action
Browse files Browse the repository at this point in the history
  • Loading branch information
ksenia-vazhdaeva committed Jan 20, 2025
1 parent 8f9a0bd commit 5b79b19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/actions/get-environments/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: Environments
description: Extracts names of all environments in the repository
description: Extracts all environments in the GitHub repository
inputs:
token:
description: GitHub token
required: true
repository:
description: GitHub repository
required: true
outputs:
data:
description: Array of environment names
Expand All @@ -18,5 +25,5 @@ runs:
echo "data=$DATA" >> $GITHUB_OUTPUT
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ inputs.token }}
GITHUB_REPOSITORY: ${{ inputs.repository }}
3 changes: 3 additions & 0 deletions .github/workflows/deploy_multiple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
- name: Get environments
id: environments
uses: ./.github/actions/get-environments
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
execute:
runs-on: ubuntu-latest
needs:
Expand Down

0 comments on commit 5b79b19

Please sign in to comment.