Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix file handling in copy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 17, 2021
1 parent cf5258b commit ed679de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/copy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ jobs:
git commit -m "run gofmt -s"
fi
- name: determine files to add
run: echo "FILES='${{ toJson(github.event.inputs.files) }}'" >> $GITHUB_ENV
run: echo "FILES=${{ toJson(github.event.inputs.files) }}" >> $GITHUB_ENV
- name: add more versioning workflows files, if necessary
if: matrix.cfg.deploy_versioning
run: |
files=$(jq -r '.[]' <<< ${{ env.FILES }})
files=$(jq -r '.[]' <<< '${{ env.FILES }}')
files+=(".github/workflows/releaser.yml" ".github/workflows/release-check.yml" ".github/workflows/tagpush.yml")
echo "FILES='$(jq -nc '$ARGS.positional' --args ${files[@]})'" >> $GITHUB_ENV
echo "FILES=$(jq -nc '$ARGS.positional' --args ${files[@]})" >> $GITHUB_ENV
- name: Add files
run: |
for f in $(jq -r ".[]" <<< ${{ toJson(env.FILES) }}); do
Expand Down

0 comments on commit ed679de

Please sign in to comment.