Skip to content

Commit

Permalink
fix: write the lp token to old & new locations
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed May 24, 2024
1 parent c31bf20 commit be19b15
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions release-to-candidate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,9 @@ runs:
SNAPCRAFT_REMOTE_BUILD_STRATEGY: force-fallback
run: |
# For versions of snapcraft after 8.2.0, the path is different
# shellcheck disable=SC2193
if [[ "${{ steps.setup.outputs.new-remote-build }}" == "false" || "$SNAPCRAFT_REMOTE_BUILD_STRATEGY" == "force-fallback" ]]; then
mkdir -p ~/.local/share/snapcraft/provider/launchpad
echo "${{ inputs.launchpad-token }}" > ~/.local/share/snapcraft/provider/launchpad/credentials
else
mkdir -p ~/.local/share/snapcraft
echo "${{ inputs.launchpad-token }}" > ~/.local/share/snapcraft/launchpad-credentials
fi
mkdir -p ~/.local/share/snapcraft/provider/launchpad ~/.local/share/snapcraft
echo "${{ inputs.launchpad-token }}" > ~/.local/share/snapcraft/provider/launchpad/credentials
echo "${{ inputs.launchpad-token }}" > ~/.local/share/snapcraft/launchpad-credentials
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
Expand Down

0 comments on commit be19b15

Please sign in to comment.