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

Commit

Permalink
Merge pull request #211 from protocol/fix-copy-workflow-files
Browse files Browse the repository at this point in the history
fix file handling in copy workflow
  • Loading branch information
marten-seemann committed Oct 17, 2021
2 parents cf5258b + ed679de commit e868178
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 e868178

Please sign in to comment.