Skip to content

Fix invalid secrets syntax in workflow conditional#17

Merged
mklan merged 2 commits intomainfrom
copilot/fix-workflow-secrets-issue
Jan 31, 2026
Merged

Fix invalid secrets syntax in workflow conditional#17
mklan merged 2 commits intomainfrom
copilot/fix-workflow-secrets-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

GitHub Actions workflow was failing due to invalid secrets access in conditional statement. Secrets cannot be directly referenced in if conditions - they must be evaluated within expression syntax.

Changes

  • Fixed conditional in .github/workflows/deploy.yml line 105

Before:

- name: Deploy to AUR
  if: secrets.AUR_SSH_KEY

After:

- name: Deploy to AUR
  if: ${{ secrets.AUR_SSH_KEY != '' }}

The step now properly evaluates whether the secret exists before attempting AUR deployment.

Original prompt

The workflows are dialing because of secrets. Please fix


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: mklan <5452972+mklan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix workflows failing due to secrets issue Fix invalid secrets syntax in workflow conditional Jan 31, 2026
Copilot AI requested a review from mklan January 31, 2026 09:45
@mklan mklan marked this pull request as ready for review January 31, 2026 09:57
@mklan mklan merged commit a33a851 into main Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants