Skip to content

Commit

Permalink
fix permission
Browse files Browse the repository at this point in the history
Signed-off-by: Hajime Tazaki <[email protected]>
  • Loading branch information
thehajime committed Oct 4, 2021
1 parent 0891a73 commit 6322ee2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,18 +428,19 @@ jobs:
needs: docker-image
runs-on: ubuntu-18.04
name: downstream
permissions:
contents: write
if: ${{ github.event_name == 'release' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set environment variables for image name
run: |
IMAGE_VERSION=`git describe --tags --abbrev=0 | sed "s/^v//"`
echo "IMAGE_VERSION=$IMAGE_VERSION" >> $GITHUB_ENV
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ukontainer/runu
event-type: trigger-test
client-payload: '{"img_version": "${{ env.IMAGE_VERSION }}", "repository": "$GITHUB_REPOSITORY"}'

0 comments on commit 6322ee2

Please sign in to comment.