Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ming1016 authored Mar 21, 2024
1 parent 6562cd1 commit 43e7a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
uses: snickerbockers/submodules-init@v4
- name: Import PAT from Actions secrets
run: |
cd SwiftPamphletApp
cd SwiftPamphletApp/App
sed -i '' s/'gitHubAccessToken = ""'/'gitHubAccessToken = "${{ secrets.PAT }}"'/ SwiftPamphletAppConfig.swift
cd ..
- name: Build
run: |
if grep -q 'gitHubAccessToken = ""' ./SwiftPamphletApp/SwiftPamphletAppConfig.swift ; then
if grep -q 'gitHubAccessToken = ""' ./SwiftPamphletApp/App/SwiftPamphletAppConfig.swift ; then
echo "please setup your personal access token to Actions secrets and name it to PAT" && exit
fi
chmod +x ./compile.command
Expand Down

0 comments on commit 43e7a97

Please sign in to comment.