diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 273d7d199..cb850374a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,24 +17,11 @@ jobs: release: runs-on: ubuntu-latest outputs: - APP_TOKEN: ${{ steps.generate-token.outputs.token }} VERSION_NUMBER: ${{ steps.git-release.outputs.VERSION_NUMBER }} steps: - - name: Generate a token - id: generate-token - uses: actions/create-github-app-token@v1 + - uses: actions/checkout@v4 with: - app-id: ${{ secrets.APP_ID }} - private-key: ${{ secrets.APP_PEM }} - owner: ${{ github.repository_owner }} - repositories: | - veda-ui - veda-config - - run: echo ${{ steps.generate-token.outputs.token }} - # - uses: actions/checkout@v4 - # with: - # fetch-depth: 0 - # token: ${{ steps.generate-token.outputs.token }} + fetch-depth: 0 # - name: git config # run: | # git config user.name "${GITHUB_ACTOR}" @@ -53,12 +40,20 @@ jobs: runs-on: ubuntu-latest needs: "release" steps: - - name: Check output - run: echo ${{needs.release.outputs.APP_TOKEN}} + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PEM }} + owner: ${{ github.repository_owner }} + repositories: | + veda-ui + veda-config - name: Repository Dispatch uses: peter-evans/repository-dispatch@v3 with: - token: ${{ needs.release.outputs.APP_TOKEN }} + token: ${{steps.generate-token.outputs.token}} repository: nasa-impact/veda-config event-type: update-version client-payload: '{"ref": "${{ github.ref }}", "VERSION_NUMBER": "${{ needs.release.outputs.VERSION_NUMBER || inputs.VERSION_NUMBER }}"}' \ No newline at end of file diff --git a/bin/act b/bin/act new file mode 100755 index 000000000..3b1a4684f Binary files /dev/null and b/bin/act differ