write to output #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Use Action | |
on: | |
push: | |
branches: ['main'] | |
permissions: | |
id-token: write # Needed to federate with octo-sts | |
jobs: | |
use-action: | |
name: Use Action | |
runs-on: ubuntu-latest | |
steps: | |
- id: octo-sts | |
uses: chainguard-dev/octo-sts-js@main | |
with: | |
scope: chainguard-dev/octo-sts-js | |
identity: use-action | |
- uses: actions/checkout@v2 | |
- run: date +%s > date.txt | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ steps.octo-sts.outputs.token }} | |
commit-message: Use Action | |
title: Use Action | |
body: | | |
This PR was created using an Octo STS token |