Skip to content

actions/*: streamline workflows into reusable actions #3

actions/*: streamline workflows into reusable actions

actions/*: streamline workflows into reusable actions #3

Workflow file for this run

name: Older Than 2 Years Informer
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
id: script
with:
script: |-
fetch('https://api.github.com/user', {
headers: {
Authorization: 'token ${{ secrets.GH_PAT }}',
Accept: 'application/vnd.github.v3+json',
},
})
.then((response) => response.json())
.then((data) => console.log(data.permissions))
.catch((error) => console.error(error));