Skip to content

Commit

Permalink
fix ci: set the GH_TOKEN environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed May 13, 2024
1 parent ec6092d commit 1e7e35d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
- name: Determine the Tag Name
id: get-tag-name
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ github.event.inputs.tagName }}" != "" ]]; then
echo "Using manually provided tag name: ${{ github.event.inputs.tagName }}"
Expand All @@ -42,6 +44,8 @@ jobs:
fi
- name: Download the release asset
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Construct the asset file name
asset_name="${{ steps.get-tag-name.outputs.tag_name }}.zip"
Expand All @@ -55,4 +59,14 @@ jobs:
- name: Extract the archive
run: |
asset_name="${{ steps.get-tag-name.outputs.tag_name }}.zip"
unzip "$asset_name" -d extracted
unzip "$asset_name" -d extracted
# - name: Check for the specific file
# run: |
# # Update this path to the expected location of your file within the extracted directory
# if [ -f "extracted/path/to/your/file" ]; then
# echo "File exists."
# else
# echo "File does not exist."
# exit 1
# fi

0 comments on commit 1e7e35d

Please sign in to comment.